mirror of
https://github.com/discourse/discourse.git
synced 2025-03-22 23:15:53 +08:00
Fix the build.
This commit is contained in:
parent
658b55c406
commit
de2243319e
@ -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"]);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -819,7 +819,7 @@ export default {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"search/query.json": {
|
"search/query": {
|
||||||
posts: [
|
posts: [
|
||||||
{
|
{
|
||||||
id: 3833,
|
id: 3833,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user