Added tons of console.logs to try find out where the problem with travis not being able to read file lies.

This commit is contained in:
2017-12-20 23:06:02 +01:00
parent fb22576708
commit 6a725e3921

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;
}
}