Disable logster error reporting during tests
This commit is contained in:
parent
cbe3a72c1f
commit
f80502ea0e
|
@ -83,6 +83,13 @@ Discourse.runInitializers();
|
||||||
Discourse.start();
|
Discourse.start();
|
||||||
Discourse.Route.mapRoutes();
|
Discourse.Route.mapRoutes();
|
||||||
|
|
||||||
|
// disable logster error reporting
|
||||||
|
if (window.Logster) {
|
||||||
|
Logster.enabled = false;
|
||||||
|
} else {
|
||||||
|
window.Logster = { enabled: false };
|
||||||
|
}
|
||||||
|
|
||||||
QUnit.testStart(function() {
|
QUnit.testStart(function() {
|
||||||
// Allow our tests to change site settings and have them reset before the next test
|
// Allow our tests to change site settings and have them reset before the next test
|
||||||
Discourse.SiteSettings = jQuery.extend(true, {}, Discourse.SiteSettingsOriginal);
|
Discourse.SiteSettings = jQuery.extend(true, {}, Discourse.SiteSettingsOriginal);
|
||||||
|
|
Loading…
Reference in New Issue