Skip to content

Commit

Permalink
Housekeeping - fix order of functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Cruikshanks committed Dec 30, 2024
1 parent 423f47c commit 14beca0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/support/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down Expand Up @@ -126,14 +134,6 @@ async function _viewNames(schema) {
})
}

/**
* Close the connection to the database
*
*/
async function closeConnection() {
await db.destroy()
}

module.exports = {
clean,
closeConnection,
Expand Down

0 comments on commit 14beca0

Please sign in to comment.