From d9d0466a9b9a30557ec5ee9cfffb14fde5feb6e2 Mon Sep 17 00:00:00 2001 From: Alan Cruikshanks Date: Mon, 30 Dec 2024 18:00:05 +0000 Subject: [PATCH] Housekeeping - fix order of functions --- test/support/database.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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,