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(() => {
|
expect(() => {
|
||||||
reducerTester()
|
reducerTester()
|
||||||
.givenReducer(mutatingReducer, initialState)
|
.givenReducer(mutatingReducer, initialState)
|
||||||
.whenActionIsDispatched(dummyAction('some string'))
|
.whenActionIsDispatched(dummyAction('some string'));
|
||||||
.thenStateShouldEqual({ ...initialState, data: ['some string'] });
|
|
||||||
}).toThrow();
|
}).toThrow();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@ -50,8 +49,7 @@ describe('reducerTester', () => {
|
|||||||
expect(() => {
|
expect(() => {
|
||||||
reducerTester()
|
reducerTester()
|
||||||
.givenReducer(okReducer, initialState)
|
.givenReducer(okReducer, initialState)
|
||||||
.whenActionIsDispatched(dummyAction('some string'))
|
.whenActionIsDispatched(dummyAction('some string'));
|
||||||
.thenStateShouldEqual({ ...initialState, data: ['some string'] });
|
|
||||||
}).not.toThrow();
|
}).not.toThrow();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user