Skip to content

Commit 106902d

Browse files
test: revert changes
1 parent df9b58b commit 106902d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

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

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

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

8183
wrapper.unmount()
8284
})
@@ -93,7 +95,8 @@ describe('useCssVariables', () => {
9395

9496
await nextTick()
9597

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

98101
wrapper.unmount()
99102
})

0 commit comments

Comments
 (0)