The page you're looking for could not be found. Try selecting one of the lists in the nav bar.
5 |11 | submissions | 12 | comments 13 |
14 | 15 | 16 |Example HTML
' 51 | } 52 | } 53 | }) 54 | const wrapper = createWrapper({ store }) 55 | expect(wrapper.find('.about').text()).toContain('Example HTML') 56 | }) 57 | 58 | test('dispatches fetchUser with id', () => { 59 | const store = createStore() 60 | const mocks = { 61 | $route: { 62 | params: { 63 | id: '123' 64 | } 65 | } 66 | } 67 | jest.spyOn(store, 'dispatch') 68 | createWrapper({ store, mocks }) 69 | expect(store.dispatch).toHaveBeenCalledWith( 70 | 'fetchUser', 71 | { id: '123' } 72 | ) 73 | }) 74 | }) 75 | -------------------------------------------------------------------------------- /src/views/__tests__/__snapshots__/NotFound.server.spec.js.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`NotFound renders correctly on server 1`] = `"The page you're looking for could not be found. Try selecting one of the lists in the nav bar.
19 | {{ item.kids ? item.descendants + ' comments' : 'No comments yet.' }} 20 |
21 |
22 |23 |
24 |
25 |