Tweak mysql test setup

This commit is contained in:
Timothy Warren 2016-07-20 17:19:59 -04:00
parent a8d7daf02a
commit 2a4fedf03c

View File

@ -17,13 +17,7 @@ let nodeQuery = reload('../../lib/NodeQuery')(config);
let qb = nodeQuery.getQuery(); let qb = nodeQuery.getQuery();
suite('Mysql2 adapter tests -', () => { suite('Mysql2 adapter tests -', () => {
suiteSetup(done => { suiteSetup(done => qb.truncate('create_test').then(() => done()));
qb.truncate('create_join').then(() => {
qb.truncate('create_test').then(() => {
done();
});
});
});
test('nodeQuery.getQuery = nodeQuery.init', () => { test('nodeQuery.getQuery = nodeQuery.init', () => {
expect(nodeQuery.getQuery()) expect(nodeQuery.getQuery())