mongolike
mongolike copied to clipboard
move tests out of tests.sql and into their own module [test/test_runner.js]
filename : test/test_runner.js line # : 38 tag : todo md5 : d07207f6c68c08e5df34b85bdbc50288
// [todo] - move tests out of tests.sql and into their own module
function loadTests (client) {
client.query(tests, function (err) {
if (err) {
console.error('could not load tests', err.toString());
client.end();
return;
}
runTests(client);
});
}
function runTests (client) {
client.query("SELECT mongolike_tests()", function (err, results) {
client.end();