File tree Expand file tree Collapse file tree 2 files changed +6
-11
lines changed
Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Original file line number Diff line number Diff line change 11const supportsAsyncAwait =
22 parseInt ( process . version . slice ( 1 ) . split ( '.' ) . join ( '' ) ) > 760 ;
33
4- const path = supportsAsyncAwait
5- ? './src/adapter-utils'
6- : './dist/adapter-utils' ;
4+ const path = supportsAsyncAwait ? './src/index' : './dist/index' ;
75
86module . exports = require ( path ) ;
Original file line number Diff line number Diff line change 1- const { mockDb } = require ( 'micro-analytics-cli/tests/utils' ) ;
2-
3- jest . mock ( 'flat-file-db' , ( ) => mockDb ) ;
4-
1+ const adapter = require ( 'micro-analytics-adapter-memory' ) ;
52const test = require ( '../src/unit-tests' ) ;
63
74test ( {
8- name : 'flat-file-db ' ,
9- modulePath : 'micro-analytics-adapter-flat-file-db ' ,
10- beforeEach : async ( ) => {
11- mockDb . _reset ( ) ;
5+ name : 'memory ' ,
6+ modulePath : 'micro-analytics-adapter-memory ' ,
7+ beforeEach : ( ) => {
8+ adapter . clear ( ) ;
129 } ,
1310} ) ;
You can’t perform that action at this time.
0 commit comments