Skip to content

Commit 26e7c65

Browse files
author
Dane Springmeyer
committed
fix the fts test added in 42aa8c8, which was not valid for expresso and must never have worked (just hung)
1 parent cbd74f7 commit 26e7c65

1 file changed

Lines changed: 5 additions & 13 deletions

File tree

test/fts-content.test.js

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,9 @@
1-
/*jshint strict:true node:true es5:true onevar:true laxcomma:true laxbreak:true eqeqeq:true immed:true latedef:true*/
2-
(function () {
3-
"use strict";
1+
var sqlite = require('sqlite3')
2+
var assert = require('assert')
43

5-
var sqlite = require('sqlite3')
6-
, assert = require('assert')
7-
, db
8-
;
9-
10-
function readyForQuery() {
4+
exports['test fts content'] = function(beforeExit) {
5+
var db = new sqlite.Database(":memory:");
116
db.exec('CREATE VIRTUAL TABLE t1 USING fts4(content="", a, b, c);', function (err) {
127
assert.ok(!err);
138
});
14-
}
15-
16-
db = new sqlite.Database(":memory:", readyForQuery);
17-
}());
9+
}

0 commit comments

Comments
 (0)