Skip to content

Commit

Permalink
Update shallowReadonly.spec.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 authored Nov 9, 2023
1 parent 8ea65e3 commit 0a66a25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/reactivity/__tests__/shallowReadonly.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ describe('reactivity/shallowReadonly', () => {
})
})

test('should undefined from Map.clear call', () => {
test('should return undefined from Map.clear() call', () => {
const sroMap = shallowReadonly(new Map())
expect(sroMap.clear()).toBeUndefined()
expect(`Clear operation failed: target is readonly.`).toHaveBeenWarned()
Expand Down Expand Up @@ -204,7 +204,7 @@ describe('reactivity/shallowReadonly', () => {
})
})

test('should undefined from Set.clear call', () => {
test('should return undefined from Set.clear() call', () => {
const sroSet = shallowReadonly(new Set())
expect(sroSet.clear()).toBeUndefined()
expect(`Clear operation failed: target is readonly.`).toHaveBeenWarned()
Expand Down

0 comments on commit 0a66a25

Please sign in to comment.