Skip to content

issue91 clearing session table after each test | Approach 'B'#107

Open
karliatto wants to merge 1 commit intoLearn-by-doing:masterfrom
karliatto:issue91-dropDatabaseTables-V2
Open

issue91 clearing session table after each test | Approach 'B'#107
karliatto wants to merge 1 commit intoLearn-by-doing:masterfrom
karliatto:issue91-dropDatabaseTables-V2

Conversation

@karliatto
Copy link
Member

Approach B for:

  • Modified tearDown function in 'test/manager.js' to clear sessions as suggested using 'express-session' module.

in this approach using variable 'app' instead of requiring each module again in 'test/manager.js'

app.sessionStore = new MySQLStore(app.config.db);

This one seems better to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant