Skip to content

Commit

Permalink
Update deps and unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuripetusko committed Mar 9, 2023
1 parent f650fe3 commit 3d06e18
Show file tree
Hide file tree
Showing 3 changed files with 193 additions and 1,308 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@
"author": "Bruno Skvorc <[email protected]>",
"license": "GPL-3.0",
"devDependencies": {
"@babel/core": "^7.19.6",
"@babel/plugin-proposal-optional-chaining": "^7.18.9",
"@babel/preset-env": "^7.19.4",
"@babel/preset-typescript": "^7.18.6",
"@babel/core": "^7.21.0",
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
"@babel/preset-env": "^7.20.2",
"@babel/preset-typescript": "^7.21.0",
"@pinata/sdk": "^1.1.13",
"@polkadot/api": "^10.0.1",
"@polkadot/keyring": "^11.0.1",
Expand All @@ -65,12 +65,12 @@
"@rollup/plugin-node-resolve": "^11.2.0",
"@rollup/plugin-strip": "^2.0.0",
"@types/emoji-regex": "^9.2.0",
"@types/jest": "^26.0.20",
"@types/jest": "^29.4.0",
"@types/node": "^16.10.0",
"@typescript-eslint/eslint-plugin": "^5.41.0",
"@typescript-eslint/parser": "^5.41.0",
"arg": "^5.0.0",
"babel-jest": "^26.6.3",
"babel-jest": "^29.5.0",
"eslint": "^7.9.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-prettier": "^3.1.4",
Expand Down
6 changes: 3 additions & 3 deletions test/2.0.0/consolidator/setpriority.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe("rmrk2.0.0 Consolidator: SETPRIORITY", () => {
...getBlockCallsMock(createCollectionMock().create()),
...getBlockCallsMock(mintNftMock().mint()),
...getBlockCallsMock(
mintNftMock(3).resadd({ metadata: "ipfs://ipfs/123" })
mintNftMock(3).resadd({ metadata: "ipfs://ipfs/123", id: 'foo' })
),
];

Expand All @@ -32,14 +32,14 @@ describe("rmrk2.0.0 Consolidator: SETPRIORITY", () => {
it("Should not allow to set priority of a resource that doesn't exist", async () => {
const remarks = getRemarksFromBlocksMock([
...getSetupRemarks(),
...getBlockCallsMock(mintNftMock(3).setpriority(["foo"])),
...getBlockCallsMock(mintNftMock(3).setpriority(["bar", "foo"])),
]);

const consolidator = new Consolidator();
const consolidatedResult = await consolidator.consolidate(remarks);

expect(
consolidatedResult.nfts[mintNftMock(3).getId()].priority.includes("foo")
consolidatedResult.nfts[mintNftMock(3).getId()].priority.includes("bar")
).toBeFalsy();
});
});
Loading

0 comments on commit 3d06e18

Please sign in to comment.