Skip to content

Commit

Permalink
feat: add unit test for erc1155 purchase
Browse files Browse the repository at this point in the history
  • Loading branch information
ponyjackal committed Nov 30, 2023
1 parent 5ea4a04 commit a82db0d
Show file tree
Hide file tree
Showing 2 changed files with 718 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/heuristics/erc1155Purchase.spec.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// import { Transaction } from '../types';
// import { detectERC1155Purchase } from './erc1155Purchase';
// import erc1155Purchase0x16b2334d from '../test/transactions/erc1155Purchase-0x16b2334d.json';
import { Transaction } from '../types';
import { detectERC1155Purchase } from './erc1155Purchase';
import erc1155Purchase0x156df9f7 from '../test/transactions/erc1155Purchase-0x156df9f7.json';

// describe('ERC1155 Purchase', () => {
// it('Should detect ERC1155 Purchase transaction', () => {
// const isERC1155Purchase1 = detectERC1155Purchase(
// erc1155Purchase0x16b2334d as Transaction,
// );
// expect(isERC1155Purchase1).toBe(true);
// });
// });
describe('ERC1155 Purchase', () => {
it('Should detect ERC1155 Purchase transaction', () => {
const isERC1155Purchase1 = detectERC1155Purchase(
erc1155Purchase0x156df9f7 as Transaction,
);
expect(isERC1155Purchase1).toBe(true);
});
});
Loading

0 comments on commit a82db0d

Please sign in to comment.