Skip to content

Commit 081d98c

Browse files
jest
1 parent 64dd20d commit 081d98c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

13-自动化测试&mock数据/jest-test/06-hook.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ describe('测试分组和钩子函数', () => {
3030
test.only('测试 Counter 的 addOne 方法', () => {
3131
console.log('case1')
3232
counter.addOne()
33-
expect(counter.number).toBe(11)
33+
expect(counter.number).toBe(1)
3434
})
3535
test('测试 Counter 的 addTwo 方法', () => {
3636
console.log('case2')

0 commit comments

Comments
 (0)