Fix the build.

This commit is contained in:
Guo Xiang Tan 2018-08-20 16:25:59 +08:00
parent 658b55c406
commit de2243319e
2 changed files with 4 additions and 7 deletions

View File

@ -1,19 +1,16 @@
import { acceptance, logIn } from "helpers/qunit-helpers"; import { acceptance, logIn } from "helpers/qunit-helpers";
import { fixturesByUrl } from "helpers/create-pretender";
const emptySearchContextCallbacks = []; const emptySearchContextCallbacks = [];
acceptance("Search", { acceptance("Search", {
pretend(server, helper) { pretend(server) {
server.get("/search/query", request => { server.handledRequest = (verb, path, request) => {
if (request.queryParams["search_context[type]"] === undefined) { if (request.queryParams["search_context[type]"] === undefined) {
emptySearchContextCallbacks.forEach(callback => { emptySearchContextCallbacks.forEach(callback => {
callback.call(); callback.call();
}); });
} }
};
return helper.response(fixturesByUrl["search/query.json"]);
});
} }
}); });

View File

@ -819,7 +819,7 @@ export default {
] ]
} }
}, },
"search/query.json": { "search/query": {
posts: [ posts: [
{ {
id: 3833, id: 3833,