Skip to content

Commit 3d06e18

Browse files
committed
Update deps and unit tests
1 parent f650fe3 commit 3d06e18

File tree

3 files changed

+193
-1308
lines changed

3 files changed

+193
-1308
lines changed

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@
5050
"author": "Bruno Skvorc <[email protected]>",
5151
"license": "GPL-3.0",
5252
"devDependencies": {
53-
"@babel/core": "^7.19.6",
54-
"@babel/plugin-proposal-optional-chaining": "^7.18.9",
55-
"@babel/preset-env": "^7.19.4",
56-
"@babel/preset-typescript": "^7.18.6",
53+
"@babel/core": "^7.21.0",
54+
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
55+
"@babel/preset-env": "^7.20.2",
56+
"@babel/preset-typescript": "^7.21.0",
5757
"@pinata/sdk": "^1.1.13",
5858
"@polkadot/api": "^10.0.1",
5959
"@polkadot/keyring": "^11.0.1",
@@ -65,12 +65,12 @@
6565
"@rollup/plugin-node-resolve": "^11.2.0",
6666
"@rollup/plugin-strip": "^2.0.0",
6767
"@types/emoji-regex": "^9.2.0",
68-
"@types/jest": "^26.0.20",
68+
"@types/jest": "^29.4.0",
6969
"@types/node": "^16.10.0",
7070
"@typescript-eslint/eslint-plugin": "^5.41.0",
7171
"@typescript-eslint/parser": "^5.41.0",
7272
"arg": "^5.0.0",
73-
"babel-jest": "^26.6.3",
73+
"babel-jest": "^29.5.0",
7474
"eslint": "^7.9.0",
7575
"eslint-config-prettier": "^6.11.0",
7676
"eslint-plugin-prettier": "^3.1.4",

test/2.0.0/consolidator/setpriority.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ describe("rmrk2.0.0 Consolidator: SETPRIORITY", () => {
1616
...getBlockCallsMock(createCollectionMock().create()),
1717
...getBlockCallsMock(mintNftMock().mint()),
1818
...getBlockCallsMock(
19-
mintNftMock(3).resadd({ metadata: "ipfs://ipfs/123" })
19+
mintNftMock(3).resadd({ metadata: "ipfs://ipfs/123", id: 'foo' })
2020
),
2121
];
2222

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

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

4141
expect(
42-
consolidatedResult.nfts[mintNftMock(3).getId()].priority.includes("foo")
42+
consolidatedResult.nfts[mintNftMock(3).getId()].priority.includes("bar")
4343
).toBeFalsy();
4444
});
4545
});

0 commit comments

Comments
 (0)