Skip to content

Commit

Permalink
fix: fix type of wrapper.vm (#759)
Browse files Browse the repository at this point in the history
  • Loading branch information
38elements authored and eddyerburgh committed Jun 26, 2018
1 parent bc5aba3 commit ff5220d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/test-utils/src/find-vnodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function findVNodesBySelector (vNode: VNode, selector: string): Array<VNode> {

export default function findVnodes (
vnode: VNode,
vm: Component | null,
vm: Component | void,
selectorType: ?string,
selector: Object | string
): Array<VNode> {
Expand Down
2 changes: 1 addition & 1 deletion packages/test-utils/src/find.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import getSelectorTypeOrThrow from './get-selector-type'
import { throwError } from 'shared/util'

export default function find (
vm: Component | null,
vm: Component | void,
vnode: VNode | null,
element: Element,
selector: Selector
Expand Down
2 changes: 1 addition & 1 deletion packages/test-utils/src/wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { orderWatchers } from './order-watchers'

export default class Wrapper implements BaseWrapper {
+vnode: VNode | null;
+vm: Component | null;
+vm: Component | void;
_emitted: { [name: string]: Array<Array<any>> };
_emittedByOrder: Array<{ name: string, args: Array<any> }>;
isVm: boolean;
Expand Down

0 comments on commit ff5220d

Please sign in to comment.