Skip to content
This repository was archived by the owner on Jun 10, 2026. It is now read-only.

Commit e34680c

Browse files
authored
Bump deps to fix CI on new nodeJS and update tests to handle async behaviour properly (#53)
1 parent 8df21b1 commit e34680c

3 files changed

Lines changed: 19 additions & 12 deletions

File tree

package.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,21 @@
1313
"main": "dist/NoSqlProvider.js",
1414
"dependencies": {
1515
"@types/lodash": "^4.14.80",
16-
"@types/sqlite3": "^2.2.32",
16+
"@types/sqlite3": "^3.1.3",
1717
"lodash": "^4.0.0",
1818
"regexp-i18n": "^1.2.0",
19-
"synctasks": "^0.3.0"
19+
"synctasks": "^0.3.3"
2020
},
2121
"devDependencies": {
2222
"@types/mocha": "2.2.38",
23-
"awesome-typescript-loader": "^3.2.1",
24-
"mocha": "^2.3.4",
25-
"sqlite3": "^3.0.9",
26-
"tslint": "^5.0.0",
27-
"tslint-microsoft-contrib": "^4.0.1",
28-
"typescript": "2.7.2",
29-
"webpack": "^3.3.0"
23+
"awesome-typescript-loader": "^5.2.0",
24+
"mocha": "^5.2.0",
25+
"sqlite3": "^4.0.2",
26+
"tslint": "^5.11.0",
27+
"tslint-microsoft-contrib": "^5.0.3",
28+
"typescript": "2.9.2",
29+
"webpack": "^4.16.1",
30+
"webpack-cli": "^3.0.8"
3031
},
3132
"repository": {
3233
"type": "git",

src/tests/NoSqlProviderTests.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,16 @@ function sleep(timeMs: number): SyncTasks.Promise<void> {
6363

6464
describe('NoSqlProvider', function () {
6565
//this.timeout(60000);
66-
after(() => {
66+
after(callback => {
6767
if (cleanupFile) {
6868
var fs = require('fs');
69-
fs.unlink('test');
69+
fs.unlink('test', (err: any) => {
70+
if (err) {
71+
throw err;
72+
}
73+
console.log('path/file.txt was deleted');
74+
callback();
75+
});
7076
}
7177
});
7278

test.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<script src="https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js"></script>
1111

1212
<script>mocha.setup({ui: 'bdd'})</script>
13-
<script src="NoSqlProviderTestsPack.js"></script>
13+
<script src="dist/NoSqlProviderTestsPack.js"></script>
1414
<script>
1515
// Edge seems to make globals for these for some reason
1616
mocha.globals(['$0','$1','$2','$3','$4']);

0 commit comments

Comments
 (0)