Skip to content

Commit

Permalink
test: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Jan 14, 2025
1 parent 4271ab2 commit 25e298d
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 29 deletions.
3 changes: 1 addition & 2 deletions test/bases.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import { Buffer } from 'node:buffer';
import { should } from 'micro-should';
import { json, RANDOM } from './utils.js';


const base58check = createBase58check(sha256);
const vectors = json('./vectors/base_vectors.json').v;

Expand Down Expand Up @@ -208,5 +207,5 @@ should('utils: padding', () => {
assert.throws(() => coder.decode(['1', 1, true, '=']));
});

export { CODERS }
export { CODERS };
should.runWhen(import.meta.url);
42 changes: 21 additions & 21 deletions test/benchmark/package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"name": "scure-base-benchmark",
"version": "0.0.1",
"description": "Benchmark suite for scure-base",
"main": "./index.js",
"scripts": {
"bench": "node ./index.js"
},
"devDependencies": {
"micro-bmark": "0.3.1",
"micro-should": "0.4.0",
"prettier": "2.8.4",
"typescript": "5.0.2"
},
"dependencies": {
"@faustbrian/node-base58": "1.0.0",
"@stablelib/base64": "1.0.1",
"@stablelib/hex": "1.0.1",
"base-x": "3.0.8",
"bs58": "4.0.1",
"micro-base58": "0.5.0"
}
"name": "scure-base-benchmark",
"version": "0.0.1",
"description": "Benchmark suite for scure-base",
"main": "./index.js",
"scripts": {
"bench": "node ./index.js"
},
"devDependencies": {
"micro-bmark": "0.3.1",
"micro-should": "0.4.0",
"prettier": "2.8.4",
"typescript": "5.0.2"
},
"dependencies": {
"@faustbrian/node-base58": "1.0.0",
"@stablelib/base64": "1.0.1",
"@stablelib/hex": "1.0.1",
"base-x": "3.0.8",
"bs58": "4.0.1",
"micro-base58": "0.5.0"
}
}
6 changes: 2 additions & 4 deletions test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"extends": "../tsconfig.json",
"include": [
"./test.ts"
]
}
"include": ["./test.ts"]
}
3 changes: 1 addition & 2 deletions test/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ let RANDOM = new Uint8Array();
function concatBytes(a, b) {
return new Uint8Array(Buffer.concat([a, b]));
}
for (let i = 0; i < 32 * 1024; i++)
RANDOM = concatBytes(RANDOM, (start = sha256(start)));
for (let i = 0; i < 32 * 1024; i++) RANDOM = concatBytes(RANDOM, (start = sha256(start)));

const getTypeTests = () => [
[0, '0'],
Expand Down

0 comments on commit 25e298d

Please sign in to comment.