Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Jan 13, 2025
1 parent 1112923 commit 4d03e49
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
12 changes: 6 additions & 6 deletions test/bip39.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import {
mnemonicToSeed,
mnemonicToSeedSync,
validateMnemonic,
} from '..';
import { wordlist as englishWordlist } from '../wordlists/english';
import { wordlist as japaneseWordlist } from '../wordlists/japanese';
import { wordlist as spanishWordlist } from '../wordlists/spanish';
import { wordlist as portugueseWordlist } from '../wordlists/portuguese';
} from '../esm/index.js';
import { wordlist as englishWordlist } from '../esm/wordlists/english.js';
import { wordlist as japaneseWordlist } from '../esm/wordlists/japanese.js';
import { wordlist as spanishWordlist } from '../esm/wordlists/spanish.js';
import { wordlist as portugueseWordlist } from '../esm/wordlists/portuguese.js';
import { bytesToHex as toHex, hexToBytes } from '@noble/hashes/utils';
import { deepStrictEqual, throws } from './assert';
import { deepStrictEqual, throws } from './assert.js';
import { should, describe } from 'micro-should';

export function equalsBytes(a: Uint8Array, b: Uint8Array): boolean {
Expand Down
6 changes: 6 additions & 0 deletions test/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "benchmark",
"private": true,
"type": "module",
"version": "0.1.0"
}
3 changes: 2 additions & 1 deletion test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"compilerOptions": {
"target": "es2020",
"module": "commonjs",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"strict": true,
"esModuleInterop": true,
"downlevelIteration": true,
Expand Down

0 comments on commit 4d03e49

Please sign in to comment.