Skip to content

Commit

Permalink
test(methods): add beforeDestroy to special method test case
Browse files Browse the repository at this point in the history
  • Loading branch information
barnett617 committed Aug 28, 2024
1 parent 3d10454 commit 3c6cdc3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/__tests__/vue-class-component/migrator-methods.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,19 @@ describe('Methods Property Migration', () => {
created() {
console.log("OK");
}
beforeDestroy() {
console.log("beforeDestroy triggerd");
}
}`,
// Results
`import { defineComponent } from "vue";
export default defineComponent({
created() {
console.log("OK");
},
beforeDestroy() {
console.log("beforeDestroy triggerd");
}
})`,
);
Expand Down

0 comments on commit 3c6cdc3

Please sign in to comment.