File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
- import { deepStrictEqual , throws } from 'node:assert' ;
2
- import { describe , should } from 'micro-should' ;
3
1
import { hex } from '@scure/base' ;
4
- import * as P from '../lib/esm/index.js' ;
2
+ import { describe , should } from 'micro-should' ;
3
+ import { deepStrictEqual , throws } from 'node:assert' ;
5
4
import * as PD from '../lib/esm/debugger.js' ;
5
+ import * as P from '../lib/esm/index.js' ;
6
6
7
7
const Reader = P . _TEST . _Reader ;
8
8
const Writer = P . _TEST . _Writer ;
@@ -1234,7 +1234,7 @@ describe('coders', () => {
1234
1234
'-Infinity' ,
1235
1235
'-0' ,
1236
1236
] ;
1237
- for ( const t of fail ) throws ( ( ) => i64 . encode ( t ) , `${ t } ` ) ;
1237
+ for ( const t of fail ) throws ( ( ) => i64 . encode ( t ) , `${ t || 'item' } ` ) ;
1238
1238
const d5 = P . coders . decimal ( 5 ) ;
1239
1239
deepStrictEqual ( d5 . encode ( 123n ) , '0.00123' ) ;
1240
1240
deepStrictEqual ( d5 . encode ( - 123n ) , '-0.00123' ) ;
You can’t perform that action at this time.
0 commit comments