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 { fixturesByUrl } from "helpers/create-pretender";
const emptySearchContextCallbacks = [];
acceptance("Search", {
pretend(server, helper) {
server.get("/search/query", request => {
pretend(server) {
server.handledRequest = (verb, path, request) => {
if (request.queryParams["search_context[type]"] === undefined) {
emptySearchContextCallbacks.forEach(callback => {
callback.call();
});
}
return helper.response(fixturesByUrl["search/query.json"]);
});
};
}
});

View File

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