Skip to content

Commit 3e41653

Browse files
committed
added pending Int64 tests
1 parent 903aba3 commit 3e41653

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

test/50.int64.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@ var expect = require('chai').expect;
22
var Database = require('../.');
33
var Int64 = Database.Int64;
44
var db;
5+
var db2;
56

67
before(function (done) {
7-
db = new Database('temp/' + require('path').basename(__filename).split('.')[0] + '.db');
8-
db.on('open', done);
8+
db = new Database('temp/' + require('path').basename(__filename).split('.')[0] + '.1.db');
9+
db2 = new Database('temp/' + require('path').basename(__filename).split('.')[0] + '.2.db');
10+
var openCount = 0;
11+
db.on('open', opened);
12+
db2.on('open', opened);
13+
function opened() {++openCount === 2 && done();}
914
});
1015

1116
describe('Int64', function () {
@@ -19,6 +24,7 @@ describe('Int64', function () {
1924
it('should compare to other Int64s or other values via .equals()');
2025
it('should bind to statements and transactions');
2126
it('should get returned by operations after setting .safeIntegers()');
27+
it('should react to changing settings inside a .each() callback');
2228
it('should be able to change the default setting on the database');
2329
it('should return fully accurate round-trip results');
2430
});

0 commit comments

Comments
 (0)