Disable logster error reporting during tests

This commit is contained in:
riking 2014-07-28 13:41:45 -07:00
parent cbe3a72c1f
commit f80502ea0e
1 changed files with 7 additions and 0 deletions

View File

@ -83,6 +83,13 @@ Discourse.runInitializers();
Discourse.start();
Discourse.Route.mapRoutes();
// disable logster error reporting
if (window.Logster) {
Logster.enabled = false;
} else {
window.Logster = { enabled: false };
}
QUnit.testStart(function() {
// Allow our tests to change site settings and have them reset before the next test
Discourse.SiteSettings = jQuery.extend(true, {}, Discourse.SiteSettingsOriginal);