Loading devtools/client/debugger/new/src/actions/project-text-search.js +0 −4 Original line number Diff line number Diff line Loading @@ -30,10 +30,6 @@ export function addOngoingSearch(ongoingSearch: SearchOperation): Action { return { type: "ADD_ONGOING_SEARCH", ongoingSearch }; } export function clearSearchQuery(): Action { return { type: "CLEAR_QUERY" }; } export function addSearchResult( sourceId: string, filepath: string, Loading devtools/client/debugger/new/src/actions/tests/project-text-search.spec.js +0 −13 Original line number Diff line number Diff line Loading @@ -61,19 +61,6 @@ describe("project text search", () => { expect(getTextSearchQuery(getState())).toEqual(mockQuery); }); it("should remove the project text search query", () => { const { dispatch, getState } = createStore(); const mockQuery = "foo"; dispatch(actions.addSearchQuery(mockQuery)); expect(getTextSearchQuery(getState())).toEqual(mockQuery); dispatch(actions.updateSearchStatus("DONE")); dispatch(actions.clearSearchQuery()); expect(getTextSearchQuery(getState())).toEqual(""); const status = getTextSearchStatus(getState()); expect(status).toEqual("INITIAL"); }); it("should search all the loaded sources based on the query", async () => { const { dispatch, getState } = createStore(threadClient); const mockQuery = "foo"; Loading devtools/client/debugger/new/src/actions/types/index.js +0 −1 Original line number Diff line number Diff line Loading @@ -111,7 +111,6 @@ export type ProjectTextSearchAction = +type: "ADD_SEARCH_RESULT", +result: ProjectTextSearchResult |} | {| +type: "CLEAR_QUERY" |} | {| +type: "UPDATE_STATUS", +status: string |} | {| +type: "CLEAR_SEARCH_RESULTS" |} | {| +type: "ADD_ONGOING_SEARCH", +ongoingSearch: SearchOperation |} Loading devtools/client/debugger/new/src/reducers/project-text-search.js +0 −7 Original line number Diff line number Diff line Loading @@ -60,13 +60,6 @@ function update( case "ADD_QUERY": return { ...state, query: action.query }; case "CLEAR_QUERY": return { ...state, query: "", status: statusType.initial }; case "ADD_SEARCH_RESULT": const results = state.results; if (action.result.matches.length === 0) { Loading Loading
devtools/client/debugger/new/src/actions/project-text-search.js +0 −4 Original line number Diff line number Diff line Loading @@ -30,10 +30,6 @@ export function addOngoingSearch(ongoingSearch: SearchOperation): Action { return { type: "ADD_ONGOING_SEARCH", ongoingSearch }; } export function clearSearchQuery(): Action { return { type: "CLEAR_QUERY" }; } export function addSearchResult( sourceId: string, filepath: string, Loading
devtools/client/debugger/new/src/actions/tests/project-text-search.spec.js +0 −13 Original line number Diff line number Diff line Loading @@ -61,19 +61,6 @@ describe("project text search", () => { expect(getTextSearchQuery(getState())).toEqual(mockQuery); }); it("should remove the project text search query", () => { const { dispatch, getState } = createStore(); const mockQuery = "foo"; dispatch(actions.addSearchQuery(mockQuery)); expect(getTextSearchQuery(getState())).toEqual(mockQuery); dispatch(actions.updateSearchStatus("DONE")); dispatch(actions.clearSearchQuery()); expect(getTextSearchQuery(getState())).toEqual(""); const status = getTextSearchStatus(getState()); expect(status).toEqual("INITIAL"); }); it("should search all the loaded sources based on the query", async () => { const { dispatch, getState } = createStore(threadClient); const mockQuery = "foo"; Loading
devtools/client/debugger/new/src/actions/types/index.js +0 −1 Original line number Diff line number Diff line Loading @@ -111,7 +111,6 @@ export type ProjectTextSearchAction = +type: "ADD_SEARCH_RESULT", +result: ProjectTextSearchResult |} | {| +type: "CLEAR_QUERY" |} | {| +type: "UPDATE_STATUS", +status: string |} | {| +type: "CLEAR_SEARCH_RESULTS" |} | {| +type: "ADD_ONGOING_SEARCH", +ongoingSearch: SearchOperation |} Loading
devtools/client/debugger/new/src/reducers/project-text-search.js +0 −7 Original line number Diff line number Diff line Loading @@ -60,13 +60,6 @@ function update( case "ADD_QUERY": return { ...state, query: action.query }; case "CLEAR_QUERY": return { ...state, query: "", status: statusType.initial }; case "ADD_SEARCH_RESULT": const results = state.results; if (action.result.matches.length === 0) { Loading