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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user