@dashevo/dpns-contract 0.25.13 → 0.25.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.mocharc.yml CHANGED
@@ -1,3 +1,2 @@
1
- file:
2
- - test/bootstrap.js
1
+ require: test/bootstrap.js
3
2
  recursive: true
package/Cargo.toml CHANGED
@@ -1,7 +1,7 @@
1
1
  [package]
2
2
  name = "dpns-contract"
3
3
  description = "DPNS data contract schema and tools"
4
- version = "0.25.0"
4
+ version = "0.25.13"
5
5
  edition = "2021"
6
6
  rust-version = "1.73"
7
7
  license = "MIT"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dashevo/dpns-contract",
3
- "version": "0.25.13",
3
+ "version": "0.25.15",
4
4
  "description": "A contract and helper scripts for DPNS DApp",
5
5
  "scripts": {
6
6
  "lint": "eslint .",
@@ -31,13 +31,13 @@
31
31
  ],
32
32
  "license": "MIT",
33
33
  "devDependencies": {
34
- "@dashevo/wasm-dpp": "0.25.13",
34
+ "@dashevo/wasm-dpp": "0.25.15",
35
35
  "chai": "^4.3.9",
36
36
  "dirty-chai": "^2.0.1",
37
37
  "eslint": "^7.32.0",
38
38
  "eslint-config-airbnb-base": "^14.2.1",
39
39
  "eslint-plugin-import": "^2.24.2",
40
- "mocha": "^9.1.2",
40
+ "mocha": "^10.2.0",
41
41
  "sinon": "^11.1.2",
42
42
  "sinon-chai": "^3.7.0"
43
43
  }
package/test/bootstrap.js CHANGED
@@ -11,17 +11,20 @@ const {
11
11
  use(dirtyChai);
12
12
  use(sinonChai);
13
13
 
14
- before(loadWasmDpp);
15
- beforeEach(function beforeEach() {
16
- if (!this.sinon) {
17
- this.sinon = sinon.createSandbox();
18
- } else {
19
- this.sinon.restore();
20
- }
21
- });
14
+ exports.mochaHooks = {
15
+ beforeAll: loadWasmDpp,
16
+
17
+ beforeEach() {
18
+ if (!this.sinon) {
19
+ this.sinon = sinon.createSandbox();
20
+ } else {
21
+ this.sinon.restore();
22
+ }
23
+ },
22
24
 
23
- afterEach(function afterEach() {
24
- this.sinon.restore();
25
- });
25
+ afterEach() {
26
+ this.sinon.restore();
27
+ },
28
+ };
26
29
 
27
30
  global.expect = expect;