Пример #1
0
 backup.step(-1, function(err) {
     if (err) throw err;
     assert.fileExists('test/tmp/backup.db');
     backup.finish(function(err) {
         if (err) throw err;
         assertRowsMatchFile(db, 'test/tmp/backup.db', done);
     });
 });
Пример #2
0
 it('should have created the database', function() {
     assert.fileExists(filename);
 });
Пример #3
0
 it('should verify that the database exists', function() {
     assert.fileExists('test/tmp/test_parallel_inserts.db');
 });
Пример #4
0
 backup.step(1, function(err) {
     if (err) throw err;
     assert.fileExists('test/tmp/backup.db');
     backup.finish(done);
 });
Пример #5
0
 it('should have created the file', function() {
     assert.fileExists('test/tmp/test_create_shared.db');
 });