File tree Expand file tree Collapse file tree 4 files changed +9
-5
lines changed
Expand file tree Collapse file tree 4 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 1- const addon = require ( '../native/index.node' ) ;
2-
3- console . log ( addon . version ( ) ) ;
1+ module . exports = require ( '../native/index.node' )
Original file line number Diff line number Diff line change 1111 "scripts" : {
1212 "build" : " neon build" ,
1313 "install" : " yarn build" ,
14- "lint" : " eslint lib test"
14+ "lint" : " eslint lib test" ,
15+ "test" : " jest ."
1516 },
1617 "devDependencies" : {
1718 "eslint" : " ^5.9.0" ,
Original file line number Diff line number Diff line change 1+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+ exports [` basic should get sqlite version 1` ] = ` "3.24.0"` ;
Original file line number Diff line number Diff line change 1+ const Sqlite = require ( '..' ) ;
2+
13describe ( 'basic' , ( ) => {
24 it ( 'should get sqlite version' , ( ) => {
3-
5+ expect ( Sqlite . version ( ) ) . toMatchSnapshot ( ) ;
46 } )
57} )
You can’t perform that action at this time.
0 commit comments