test using native msql instead of docker

This commit is contained in:
Dave Horton committed 2019-12-05 09:43:47 -05:00
1 parent 28d05be789
commit 98369c377b
11 files changed
+1048 -111

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
const test = require('tape').test ;
const exec = require('child_process').exec ;
test('dropping jambones_test database', (t) => {
exec(`mysql -h localhost -u root -p$MYSQL_ROOT_PASSWORD < ${__dirname}/../db/remove_test_db.sql`, (err, stdout, stderr) => {
if (err) return t.end(err);
t.pass('database successfully dropped');
t.end();
process.exit(0);
});
});