Skip to content

Commit d61ac5c

Browse files
test(use-colors): change test expectations
1 parent 2c5502d commit d61ac5c

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

test/nuxt/composables/use-colors.spec.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ describe('useCssVariables', () => {
7777
await nextTick()
7878

7979
expect(useMutationObserverMock).not.toHaveBeenCalled()
80-
expect(lastMutationObserverInstance).not.toBeNull()
81-
expect(lastMutationObserverInstance!.observe).toHaveBeenCalledTimes(1)
8280

8381
wrapper.unmount()
8482
})
@@ -95,8 +93,7 @@ describe('useCssVariables', () => {
9593

9694
await nextTick()
9795

98-
expect(lastMutationObserverInstance).not.toBeNull()
99-
expect(lastMutationObserverInstance!.observe).toHaveBeenCalledTimes(1)
96+
expect(useMutationObserverMock).toHaveBeenCalledOnce()
10097

10198
wrapper.unmount()
10299
})

0 commit comments

Comments
 (0)