Testing #72

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

View File

@@ -69,6 +69,15 @@ class SqliteDatabase {
return this.execute(setupSchema); return this.execute(setupSchema);
} }
/**
* Tears down the database by running tearDown.sql file in schemas/.
* @returns {Promise}
*/
tearDown() {
const tearDownSchema = this.readSqlFile('tearDown.sql');
return this.execute(tearDownSchema);
}
/** /**
* Returns the file contents of a SQL file in schemas/. * Returns the file contents of a SQL file in schemas/.
* @returns {String} * @returns {String}