Skip to content

Commit

Permalink
Revert changes from ScriptSetup.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
freakzlike committed Aug 25, 2022
1 parent bdaeb6f commit aaae507
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions tests/components/ScriptSetup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ const count = ref(0)
const inc = () => {
count.value++
}
const resetCount = () => {
count.value = 0
}
</script>

<template>
Expand Down
4 changes: 0 additions & 4 deletions tests/expose.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,5 @@ describe('expose', () => {
// can access `count` even if it is _not_ exposed
// @ts-ignore we need better types here, see https://github.com/vuejs/test-utils/issues/972
expect(wrapper.vm.count).toBe(1)

wrapper.vm.resetCount()

expect(wrapper.vm.count).toBe(0)
})
})

0 comments on commit aaae507

Please sign in to comment.