Skip to content

Commit 0b6f09d

Browse files
committed
Update tests suite
1 parent 7f4cf13 commit 0b6f09d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/jsondb-test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,12 @@ jdb.async.serverExists('__npm_test_server', function(exists) {
3838
console.log("Can't create the test table (with no primary keys)");
3939
throw err;
4040
}
41-
4241
console.log('Test table created ! (with no primary keys)');
42+
43+
console.log('Sync start... Insertion in test table (with no primary keys)');
44+
var insert = database.query('__npm_test_table_npk.insert(\'hello\', 0)');
45+
console.log('Sync end for test table (with no primary keys)... Result = ' + insert);
46+
4347
console.log('Async start... Replacements in test table (with no primary keys)');
4448
database.async.query('__npm_test_table_npk.replace(\'nice\', 2)', function (err, res) {
4549
if (err) {
@@ -49,10 +53,6 @@ jdb.async.serverExists('__npm_test_server', function(exists) {
4953
});
5054
console.log('Async not ended... But this message will output (normally... is async...)');
5155

52-
console.log('Sync start... Insertion in test table (with no primary keys)');
53-
var insert = database.query('__npm_test_table_npk.insert(\'hello\', 0)');
54-
console.log('Sync end for test table (with no primary keys)... Result = ' + insert);
55-
5656
// database.query('__npm_test_table_npk.delete()');
5757

5858
// database.query('__npm_test_table_npk.truncate()');

0 commit comments

Comments
 (0)