Commit e5fd5ca
committed
mockStore now passes exceptions.
For example instead of the former meaningless and misleading error reported, you now see
the reason why your tests failed:
fetchPages
1) creates FETCH_PAGES_SUCCESS when fetching pages has been done
0 passing (2s)
1 failing
1) fetchPages creates FETCH_PAGES_SUCCESS when fetching pages has been done:
Error: timeout of 2000ms exceeded. Ensure the done() callback is being called in this test.
------------------------------------------------------------------------------------------------
fetchPages
1) creates FETCH_PAGES_SUCCESS when fetching pages has been done
0 passing (47ms)
1 failing
1) fetchPages creates FETCH_PAGES_SUCCESS when fetching pages has been done:
AssertionError: { type: 'FETCH_PAGES_SUCCESS',
pages:
[ { id: '5628946bd0771c0e054ec2d5' },
{ id: '5628946bd0771c0e054ec2d6' } ] } deepEqual { type: 'FETCH_PAGES_SUCCESS', pages: {} }
+ expected - actual
{
- "pages": [
- {
- "id": "5628946bd0771c0e054ec2d5"
- }
- {
- "id": "5628946bd0771c0e054ec2d6"
- }
- ]
+ "pages": {}
"type": "FETCH_PAGES_SUCCESS"
}1 parent 8cb6218 commit e5fd5ca
1 file changed
+9
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
135 | | - | |
136 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
137 | 143 | | |
138 | | - | |
139 | 144 | | |
140 | 145 | | |
141 | 146 | | |
| |||
0 commit comments