Testing #72

Merged
KevinMidboe merged 23 commits from testing into master 2018-01-09 15:56:45 +00:00
Showing only changes of commit 6a725e3921 - Show all commits

View File

@@ -75,6 +75,7 @@ class SqliteDatabase {
*/
tearDown() {
const tearDownSchema = this.readSqlFile('tearDown.sql');
console.log(tearDownSchema);
return this.execute(tearDownSchema);
}
@@ -83,8 +84,11 @@ class SqliteDatabase {
* @returns {String}
*/
readSqlFile(filename) {
console.log(filename)
const schemaPath = path.join(this.schemaDirectory, filename);
console.log(schemaPath)
const schema = fs.readFileSync(schemaPath).toString('utf-8');
console.log(schema)
return schema;
}
}