Skip to content

Commit 134f7e3

Browse files
author
Kent C. Dodds
committed
no called times on components
1 parent 0dbf18f commit 134f7e3

File tree

5 files changed

+0
-5
lines changed

5 files changed

+0
-5
lines changed

src/__tests__/tdd-04-router-redirect.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,4 @@ test('renders a form with title, content, tags, and a submit button', async () =
4141
expect(mockSavePost).toHaveBeenCalledTimes(1)
4242

4343
await wait(() => expect(MockRedirect).toHaveBeenCalledWith({to: '/'}, {}))
44-
expect(MockRedirect).toHaveBeenCalledTimes(1)
4544
})

src/__tests__/tdd-05-dates.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,4 @@ test('renders a form with title, content, tags, and a submit button', async () =
4848
expect(date).toBeLessThanOrEqual(postDate)
4949

5050
await wait(() => expect(MockRedirect).toHaveBeenCalledTimes(1))
51-
expect(MockRedirect).toHaveBeenCalledWith({to: '/'}, {})
5251
})

src/__tests__/tdd-06-generate-data.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,4 @@ test('renders a form with title, content, tags, and a submit button', async () =
5555
expect(date).toBeLessThanOrEqual(postDate)
5656

5757
await wait(() => expect(MockRedirect).toHaveBeenCalledWith({to: '/'}, {}))
58-
expect(MockRedirect).toHaveBeenCalledTimes(1)
5958
})

src/__tests__/tdd-07-error-state.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ test('renders a form with title, content, tags, and a submit button', async () =
5555
expect(date).toBeLessThanOrEqual(postDate)
5656

5757
await wait(() => expect(MockRedirect).toHaveBeenCalledWith({to: '/'}, {}))
58-
expect(MockRedirect).toHaveBeenCalledTimes(1)
5958
})
6059

6160
test('renders an error message from the server', async () => {

src/__tests__/tdd-08-custom-render.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ test('renders a form with title, content, tags, and a submit button', async () =
6565
expect(date).toBeLessThanOrEqual(postDate)
6666

6767
await wait(() => expect(MockRedirect).toHaveBeenCalledWith({to: '/'}, {}))
68-
expect(MockRedirect).toHaveBeenCalledTimes(1)
6968
})
7069

7170
test('renders an error message from the server', async () => {

0 commit comments

Comments
 (0)