-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add unit test for erc1155 purchase
- Loading branch information
1 parent
5ea4a04
commit a82db0d
Showing
2 changed files
with
718 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
}); | ||
}); |
Oops, something went wrong.