mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-19 04:17:44 +00:00
11 lines
379 B
JavaScript
11 lines
379 B
JavaScript
const test = require('tape') ;
|
|
const exec = require('child_process').exec ;
|
|
const fs = require('fs');
|
|
test('dropping jambones_test database', (t) => {
|
|
exec(`mysql -h 127.0.0.1 -u root --protocol=tcp --port=3360 < ${__dirname}/db/remove_test_db.sql`, (err, stdout, stderr) => {
|
|
if (err) return t.end(err);
|
|
t.pass('database successfully dropped');
|
|
t.end();
|
|
});
|
|
});
|