mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
TESTS: Reset the preload store for testing
This commit is contained in:
parent
c3e1dd4707
commit
c5b5db48cf
6 changed files with 31 additions and 15 deletions
|
@ -7,6 +7,10 @@ function integration(name, lifecycle) {
|
|||
if (lifecycle && lifecycle.setup) {
|
||||
lifecycle.setup.call(this);
|
||||
}
|
||||
|
||||
if (lifecycle && lifecycle.user) {
|
||||
Discourse.User.resetCurrent(Discourse.User.create(lifecycle.user));
|
||||
}
|
||||
Discourse.reset();
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue