Skip to content

Commit ce014f8

Browse files
ashish-naikmtrezza
andauthored
correct version chrck test
Co-authored-by: Manuel <[email protected]>
1 parent 54358f3 commit ce014f8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

spec/ApiMailAdapter.spec.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,8 +447,7 @@ describe('ApiMailAdapter', () => {
447447
});
448448

449449
it('throws if unsupported version', () => {
450-
expect(() => converter.zeptomail({ api: '1.2', payload: examplePayload})).toThrow();
451-
expect(() => converter.zeptomail({ api: '1.1', payload: examplePayload})).not.toThrow();
450+
expect(() => converter.zeptomail({ api: 'invalidVersion', payload: examplePayload})).toThrowError(/invalidVersion/);
452451
});
453452
});
454453
});

0 commit comments

Comments
 (0)