File tree Expand file tree Collapse file tree 5 files changed +7
-22
lines changed Expand file tree Collapse file tree 5 files changed +7
-22
lines changed Original file line number Diff line number Diff line change 12
12
``` js
13
13
const mapping = require ( ' @aureooms/js-mapping' ) ;
14
14
// or
15
- import mapping from ' @aureooms/js-mapping' ;
15
+ import * as mapping from ' @aureooms/js-mapping' ;
16
16
```
Original file line number Diff line number Diff line change 1
- import fromkeys from './fromkeys.js' ;
2
- import object from './object.js' ;
3
- import reflect from './reflect.js' ;
4
-
5
- /* eslint import/no-anonymous-default-export: [2, {"allowObject": true}] */
6
- export default {
7
- fromkeys,
8
- object,
9
- reflect,
10
- } ;
11
-
12
- export { fromkeys , object , reflect } ;
1
+ export { default as fromkeys } from './fromkeys.js' ;
2
+ export { default as object } from './object.js' ;
3
+ export { default as reflect } from './reflect.js' ;
Original file line number Diff line number Diff line change 1
1
import test from 'ava' ;
2
2
3
- import mapping , { fromkeys } from '../../src/index.js' ;
3
+ import { fromkeys } from '../../src/index.js' ;
4
4
5
5
test ( 'fromkeys' , ( t ) => {
6
- t . is ( fromkeys , mapping . fromkeys , 'exports are working' ) ;
7
-
8
6
t . deepEqual ( [ ...fromkeys ( '' , 1 ) ] , [ ] ) ;
9
7
10
8
t . deepEqual (
Original file line number Diff line number Diff line change 1
1
import test from 'ava' ;
2
2
3
- import mapping , { object } from '../../src/index.js' ;
3
+ import { object } from '../../src/index.js' ;
4
4
5
5
test ( 'object' , ( t ) => {
6
- t . is ( object , mapping . object , 'exports are working' ) ;
7
-
8
6
t . deepEqual ( object ( [ ] ) , { } ) ;
9
7
10
8
t . deepEqual (
Original file line number Diff line number Diff line change @@ -2,11 +2,9 @@ import test from 'ava';
2
2
3
3
import { enumerate } from '@aureooms/js-itertools' ;
4
4
5
- import mapping , { reflect } from '../../src/index.js' ;
5
+ import { reflect } from '../../src/index.js' ;
6
6
7
7
test ( 'reflect' , ( t ) => {
8
- t . is ( reflect , mapping . reflect , 'exports are working' ) ;
9
-
10
8
t . deepEqual ( [ ...reflect ( enumerate ( '' ) ) ] , [ ] ) ;
11
9
12
10
t . deepEqual (
You can’t perform that action at this time.
0 commit comments