Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ValdisThomann committed Feb 10, 2023
1 parent a2aa602 commit 8d9184f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/transform.v3.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ test('can transform simple encoder', async () => {
});

test(`Vendor ID of '0xFEED' should fail`, () => {
expect(() => getVendorProductId({productId: '0xFEED', vendorId: '0x1234'}))
expect(() => getVendorProductId({productId: '0x1234', vendorId: '0xFEED'}))
.toThrowErrorMatchingInlineSnapshot(`
"'0xFEED' is not a valid vendorId."
`);
expect(() => getVendorProductId({productId: '0xfeed', vendorId: '0x1234'}))
expect(() => getVendorProductId({productId: '0x1234', vendorId: '0xfeed'}))
.toThrowErrorMatchingInlineSnapshot(`
"'0xFEED' is not a valid vendorId."
`);
expect(() =>
getVendorProductId({productId: '0x1234', vendorId: '0xFEED'})
getVendorProductId({productId: '0xFEED', vendorId: '0x1234'})
).not.toThrow();
});

0 comments on commit 8d9184f

Please sign in to comment.