Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should merge lifecycle hooks', async () => {
const calls: string[] = []
const state = observable({ ok: true })
class Base extends Component {
beforeCreate() {
calls.push('base beforeCreate')
}
created() {
calls.push('base created')
}
beforeMount() {
calls.push('base beforeMount')
}
mounted() {
calls.push('base mounted')
}
beforeUpdate() {
calls.push('base beforeUpdate')