Bug/2963 search shows no results after switching to another tool and switching back to debugger#3121
Conversation
| const { query, symbolSearchOn } = this.props; | ||
| const { selectedResultIndex } = this.state; | ||
| const { query, symbolSearchResults, symbolSearchOn } = this.props; | ||
| console.log("hi"); |
| const state = State(); | ||
| expect(getSymbolSearchResults({ ui: state })).toBe( | ||
| state.symbolSearchResults | ||
| ); |
There was a problem hiding this comment.
I like treating actions as the public interface here:
here's an actions/tests/ui test
it("should toggle the visible state of project search", () => {
const { dispatch, getState } = createStore();
expect(getProjectSearchState(getState())).toBe(false);
dispatch(actions.toggleProjectSearch());
expect(getProjectSearchState(getState())).toBe(true);
});There was a problem hiding this comment.
I guess false / true should be replaced with something else? or maybe we drop these tests for now?
There was a problem hiding this comment.
oh, i think this is a good "model" test
Codecov Report
@@ Coverage Diff @@
## master #3121 +/- ##
===========================================
- Coverage 66.86% 49.78% -17.08%
===========================================
Files 76 95 +19
Lines 2698 3993 +1295
Branches 544 815 +271
===========================================
+ Hits 1804 1988 +184
- Misses 894 2005 +1111
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #3121 +/- ##
===========================================
- Coverage 66.28% 47.63% -18.66%
===========================================
Files 76 95 +19
Lines 2714 4012 +1298
Branches 549 821 +272
===========================================
+ Hits 1799 1911 +112
- Misses 915 2101 +1186
Continue to review full report at Codecov.
|
333973f to
727ab03
Compare
Associated Issue: #2963