diff --git a/test/support/database.js b/test/support/database.js index 3a2b0304ac..b48933cdfc 100644 --- a/test/support/database.js +++ b/test/support/database.js @@ -50,6 +50,14 @@ async function clean() { await _seed() } +/** + * Close the connection to the database + * + */ +async function closeConnection() { + await db.destroy() +} + /** * Call to wipe the database of all tables, views and legacy schemas * @@ -126,14 +134,6 @@ async function _viewNames(schema) { }) } -/** - * Close the connection to the database - * - */ -async function closeConnection() { - await db.destroy() -} - module.exports = { clean, closeConnection,