Skip to content
This repository has been archived by the owner on Dec 6, 2021. It is now read-only.

Commit

Permalink
fix(test): and functional slot to interface Slots
Browse files Browse the repository at this point in the history
  • Loading branch information
b2nil committed Mar 5, 2021
1 parent 765c5f9 commit 42310d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/helper.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { mount, shallowMount } from '@vue/test-utils'
import { VNode } from '@vue/runtime-core'
import { VNode, Slot } from '@vue/runtime-core'

export const sleep = async (timeout: number): Promise<null> =>
new Promise((resolve) => setTimeout(resolve, timeout))

export interface Slots {
default: Array<string | VNode>
[x: string]: Array<string | VNode>
default: Array<string | VNode> | Slot
[x: string]: Array<string | VNode> | Slot
}

export function mountFactory(
Expand Down

0 comments on commit 42310d9

Please sign in to comment.