mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Removed then clauses, no need to test the test within the test
This commit is contained in:
parent
6a84a85a80
commit
99b500c740
@ -39,8 +39,7 @@ describe('reducerTester', () => {
|
||||
expect(() => {
|
||||
reducerTester()
|
||||
.givenReducer(mutatingReducer, initialState)
|
||||
.whenActionIsDispatched(dummyAction('some string'))
|
||||
.thenStateShouldEqual({ ...initialState, data: ['some string'] });
|
||||
.whenActionIsDispatched(dummyAction('some string'));
|
||||
}).toThrow();
|
||||
});
|
||||
});
|
||||
@ -50,8 +49,7 @@ describe('reducerTester', () => {
|
||||
expect(() => {
|
||||
reducerTester()
|
||||
.givenReducer(okReducer, initialState)
|
||||
.whenActionIsDispatched(dummyAction('some string'))
|
||||
.thenStateShouldEqual({ ...initialState, data: ['some string'] });
|
||||
.whenActionIsDispatched(dummyAction('some string'));
|
||||
}).not.toThrow();
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user