Skip to content

Commit

Permalink
fix function calls in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusbsilva137 committed Oct 16, 2024
1 parent 205c27f commit f4a4ac4
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe('verifyContactChannel', () => {
modelsMock.LivechatContacts.findOneById.resolves({ _id: 'contactId', channels: [{ name: 'channelName', visitorId: 'visitorId' }] });
modelsMock.LivechatContacts.findSimilarVerifiedContacts.resolves([]);

await runVerifyContactChannel({
await runVerifyContactChannel(() => undefined, {
contactId: 'contactId',
field: 'field',
value: 'value',
Expand Down Expand Up @@ -88,7 +88,7 @@ describe('verifyContactChannel', () => {
},
]);

await runVerifyContactChannel({
await runVerifyContactChannel(() => undefined, {
contactId: 'contactId',
field: 'field',
value: 'value',
Expand Down Expand Up @@ -132,7 +132,7 @@ describe('verifyContactChannel', () => {
},
]);

await runVerifyContactChannel({
await runVerifyContactChannel(() => undefined, {
contactId: 'contactId',
field: 'field',
value: 'value',
Expand All @@ -158,7 +158,7 @@ describe('verifyContactChannel', () => {
modelsMock.LivechatContacts.findOneById.resolves(undefined);

await expect(
runVerifyContactChannel({
runVerifyContactChannel(() => undefined, {
contactId: 'invalidId',
field: 'field',
value: 'value',
Expand All @@ -176,7 +176,7 @@ describe('verifyContactChannel', () => {
});

await expect(
runVerifyContactChannel({
runVerifyContactChannel(() => undefined, {
contactId: 'contactId',
field: 'field',
value: 'value',
Expand Down

0 comments on commit f4a4ac4

Please sign in to comment.