Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(runtime-vapor): api lifecycle hooks #215

Merged
merged 5 commits into from
May 26, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: use "it" fn
  • Loading branch information
ubugeeei committed May 21, 2024
commit a265416ae633b8d26a8bdd0f20dba8a1147b38d0
8 changes: 4 additions & 4 deletions packages/runtime-vapor/__tests__/apiLifecycle.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ describe('api: lifecycle hooks', () => {
// ])
})

test('onRenderTracked', async () => {
it('onRenderTracked', async () => {
const events: DebuggerEvent[] = []
const onTrack = vi.fn((e: DebuggerEvent) => {
events.push(e)
Expand Down Expand Up @@ -382,7 +382,7 @@ describe('api: lifecycle hooks', () => {
])
})

test('onRenderTrigger', async () => {
it('onRenderTrigger', async () => {
const events: DebuggerEvent[] = []
const onTrigger = vi.fn((e: DebuggerEvent) => {
events.push(e)
Expand Down Expand Up @@ -462,7 +462,7 @@ describe('api: lifecycle hooks', () => {
})

// #136
test('should trigger updated hooks across components. (parent -> child)', async () => {
it('should trigger updated hooks across components. (parent -> child)', async () => {
const handleUpdated = vi.fn()
const handleUpdatedChild = vi.fn()

Expand Down Expand Up @@ -507,7 +507,7 @@ describe('api: lifecycle hooks', () => {
})

// #136
test('should trigger updated hooks across components. (child -> parent)', async () => {
it('should trigger updated hooks across components. (child -> parent)', async () => {
const handleUpdated = vi.fn()
const handleUpdatedChild = vi.fn()

Expand Down
Loading