Use pretender's passthrough for dynamically loaded scripts

This commit is contained in:
Robin Ward
2015-03-13 12:08:28 -04:00
parent f359cdeddc
commit 77f9d1e223
5 changed files with 131 additions and 28 deletions

View File

@ -75,9 +75,6 @@ Discourse.injectTestHelpers();
Discourse.runInitializers();
Discourse.start();
Discourse.Route.mapRoutes();
Discourse.HighlightJSPath = "/highlight.js";
// messy but we need to pass tests
window.hljs = {highlightBlock: function(){}}
// disable logster error reporting
if (window.Logster) {