Skip to content

Commit 4424c1c

Browse files
committed
test(lane): remove unused code
1 parent c1531e7 commit 4424c1c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

__test__/lane/migrate.spec.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
/// <reference path="../index.d.ts" />
22
import { renderHook, act } from '@testing-library/react-hooks'
33
import { createStore, useModel } from '../../src'
4-
import { timeout } from '../../src/helper'
5-
// import { timeout } from '../../src/helper'
64

75
describe('migrate test', async () => {
86
test('migrate from v4.0.x', async () => {
@@ -53,11 +51,9 @@ describe('migrate test', async () => {
5351
result.current.actions.increment(5)
5452
})
5553

56-
await timeout(300, {})
5754

5855
act(() => {
59-
// expect(renderTimes).toEqual(3)
60-
console.group('expect result.current.state.count')
56+
expect(renderTimes).toEqual(3)
6157
expect(result.current.state.count).toBe(10)
6258
})
6359
})

0 commit comments

Comments
 (0)