2
0
Fork 0
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:
Robin Ward 2014-07-31 13:24:07 -04:00
parent c3e1dd4707
commit c5b5db48cf
6 changed files with 31 additions and 15 deletions

View file

@ -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();
},