Skip to content

Commit 65bd1b0

Browse files
update to allow table value to be passed
1 parent dbf32d1 commit 65bd1b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/support/db.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ const config = require('../../src/config');
33

44
const client = knex({ client: 'pg', connection: config.postgres });
55

6-
const resetSchema = () => {
7-
return client('analytics_data').delete();
6+
const resetSchema = (table) => {
7+
return client(table).delete();
88
};
99

1010
module.exports = { client, config, resetSchema };

0 commit comments

Comments
 (0)