Skip to content

Commit

Permalink
test: change imports to use nodejs namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Jun 13, 2024
1 parent 72c6ec6 commit bf0e16b
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion test/base58.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const assert = require('assert');
const assert = require('node:assert');
const { should, describe } = require('micro-should');
const { base58, base58xmr, base58check: _base58check, base58xrp } = require('..');
const VECTORS_2 = require('./vectors/base58.json');
Expand Down
2 changes: 1 addition & 1 deletion test/bases.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const assert = require('assert');
const assert = require('node:assert');
const {
base32,
base32nopad,
Expand Down
8 changes: 3 additions & 5 deletions test/bech32.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const assert = require('assert');
const assert = require('node:assert');
const { should } = require('micro-should');
const { bech32, bech32m } = require('..');

Expand Down Expand Up @@ -73,8 +73,7 @@ const BECH32_INVALID_ENCODE = [
words: [],
},
{
prefix:
'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzfoobar',
prefix: 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzfoobar',
words: [],
},
{
Expand Down Expand Up @@ -195,8 +194,7 @@ const BECH32M_INVALID_ENCODE = [
words: [],
},
{
prefix:
'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzfoobar',
prefix: 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzfoobar',
words: [],
},
{
Expand Down
2 changes: 1 addition & 1 deletion test/benchmark/quadratic.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const assert = require('assert');
const assert = require('node:assert');
const { should } = require('micro-should');
const { RANDOM, stats } = require('../test/utils');

Expand Down
2 changes: 1 addition & 1 deletion test/bip173.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { deepStrictEqual, throws } = require('assert');
const { deepStrictEqual, throws } = require('node:assert');
const { describe, should } = require('micro-should');
const { bech32, bech32m, radix2 } = require('..');

Expand Down
2 changes: 1 addition & 1 deletion test/rfc4648.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const assert = require('assert');
const assert = require('node:assert');
const { should } = require('micro-should');
const { base16, base32, base32hex, base32crockford, base64, base64url } = require('..');

Expand Down
2 changes: 1 addition & 1 deletion test/slow-dos.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const assert = require('assert');
const assert = require('node:assert');
const { should } = require('micro-should');
const { RANDOM, stats } = require('./utils');
const { CODERS } = require('./bases.test.js');
Expand Down

0 comments on commit bf0e16b

Please sign in to comment.