Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit dda093d

Browse files
committed
fixed typo
1 parent d885745 commit dda093d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

‎test/useMemo.test.js‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,25 +39,25 @@ describe('useCallback tests', () => {
3939

4040
const callback1 = result.current
4141

42-
const calbackValue1 = callback1()
42+
const callbackValue1 = callback1()
4343

44-
expect(calbackValue1).toEqual({ value: 1 })
44+
expect(callbackValue1).toEqual({ value: 1 })
4545

4646
const callback2 = result.current
4747

48-
const calbackValue2 = callback2()
48+
const callbackValue2 = callback2()
4949

50-
expect(calbackValue2).toEqual({ value: 1 })
50+
expect(callbackValue2).toEqual({ value: 1 })
5151

5252
expect(callback2).toBe(callback1)
5353

5454
rerender({ value: 2 })
5555

5656
const callback3 = result.current
5757

58-
const calbackValue3 = callback3()
58+
const callbackValue3 = callback3()
5959

60-
expect(calbackValue3).toEqual({ value: 2 })
60+
expect(callbackValue3).toEqual({ value: 2 })
6161

6262
expect(callback3).not.toBe(callback1)
6363
})

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /