Skip to content
This repository has been archived by the owner on Jul 15, 2022. It is now read-only.

Commit

Permalink
Add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
gre authored and lambertkevin committed Apr 29, 2022
1 parent 0fa0c6c commit accfe97
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/families/ethereum/nft.unit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ describe("OpenSea lazy minting bs", () => {
// -2 off-chain & -3 on-chain -> 0 on-chain (3 off-chain)
// +1 on-chain -> 1 on-chain (and 3 off-chain)

const prevOperations = ops.slice(0);
const nfts = nftsFromOperations(ops);
expect(prevOperations).toEqual(ops); // ensure preserved order of operations
expect(nfts[0].amount.toNumber()).toBe(1);
});
});

0 comments on commit accfe97

Please sign in to comment.