mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
big hacks to get tests to pass
This commit is contained in:
parent
20ab1f97e4
commit
01fcc7503a
2 changed files with 14 additions and 0 deletions
|
@ -55,6 +55,15 @@ export default function() {
|
||||||
return response({});
|
return response({});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this.get('/javascripts/jquery.magnific-popup-min.js', function() {
|
||||||
|
return response({});
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
this.get('/highlight.js', function() {
|
||||||
|
return response({});
|
||||||
|
});
|
||||||
|
|
||||||
this.post('/session', function(request) {
|
this.post('/session', function(request) {
|
||||||
var data = parsePostData(request.requestBody);
|
var data = parsePostData(request.requestBody);
|
||||||
|
|
||||||
|
|
|
@ -47,6 +47,8 @@
|
||||||
//= require_tree ./lib
|
//= require_tree ./lib
|
||||||
//= require_tree .
|
//= require_tree .
|
||||||
//= require_self
|
//= require_self
|
||||||
|
//
|
||||||
|
//= require ../../public/javascripts/jquery.magnific-popup-min.js
|
||||||
|
|
||||||
// sinon settings
|
// sinon settings
|
||||||
sinon.config = {
|
sinon.config = {
|
||||||
|
@ -73,6 +75,9 @@ Discourse.injectTestHelpers();
|
||||||
Discourse.runInitializers();
|
Discourse.runInitializers();
|
||||||
Discourse.start();
|
Discourse.start();
|
||||||
Discourse.Route.mapRoutes();
|
Discourse.Route.mapRoutes();
|
||||||
|
Discourse.HighlightJSPath = "/highlight.js";
|
||||||
|
// messy but we need to pass tests
|
||||||
|
window.hljs = {highlightBlock: function(){}}
|
||||||
|
|
||||||
// disable logster error reporting
|
// disable logster error reporting
|
||||||
if (window.Logster) {
|
if (window.Logster) {
|
||||||
|
|
Loading…
Reference in a new issue