Skip to content

Commit 4869ea9

Browse files
committed
code style fixes, reverted testing specific sqlite version number
1 parent c241396 commit 4869ea9

File tree

6 files changed

+13
-10
lines changed

6 files changed

+13
-10
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,4 @@ target
3939
index.node
4040
artifacts.json
4141
package-lock.json
42+
test/*.db

lib/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = require('../native/index.node')
1+
module.exports = require('../native/index.node');

package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
"jest": "^23.6.0"
2121
},
2222
"eslintConfig": {
23-
"extends": "bliss"
23+
"extends": "bliss",
24+
"rules": {
25+
"prettier/prettier": ["error", {"singleQuote": true, "parser": "flow"}]
26+
}
2427
}
2528
}

test/__snapshots__/basic.spec.js.snap

-3
This file was deleted.

test/basic.spec.js

+7-5
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@ const path = require('path');
33

44
describe('basic', () => {
55
it('should get sqlite version', () => {
6-
expect(version()).toMatchSnapshot();
7-
})
6+
// Ideally we could snapshot test this but we can't do this until
7+
// we test against a fixed version of SQLite
8+
expect(version()).toContain('.');
9+
});
810

9-
it('should get ', async () => {
11+
it('should execute query statements', async () => {
1012
const conn = new Sqlite();
1113

1214
await conn.create({
@@ -29,5 +31,5 @@ describe('basic', () => {
2931
`);
3032

3133
conn.execute('DROP TABLE contacts;');
32-
})
33-
})
34+
});
35+
});

test/test.db

-12 KB
Binary file not shown.

0 commit comments

Comments
 (0)