Skip to content

Commit 588ba02

Browse files
committed
Fix tests
1 parent c5da313 commit 588ba02

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/unit/max-depth.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,14 +161,14 @@ describe('Testing max-depth behaviour', () => {
161161
const group1 = (
162162
groups.filter(g => g.vm.$props.depth === 1)
163163
.shift()
164-
) as Wrapper<QueryBuilder, Element>;
164+
) as Wrapper<QueryBuilderGroupInstance, Element>;
165165
expect((group1.vm as QueryBuilderGroupInstance).maxDepthExeeded).toBeFalsy();
166166
expect(group1.find('.query-builder-group__group-adding-button').exists()).toBeTruthy();
167167

168168
const group4 = (
169169
groups.filter(g => g.vm.$props.depth === 4)
170170
.shift()
171-
) as Wrapper<QueryBuilder, Element>;
171+
) as Wrapper<QueryBuilderGroupInstance, Element>;
172172
expect((group4.vm as QueryBuilderGroupInstance).maxDepthExeeded).toBeTruthy();
173173
expect(group4.find('.query-builder-group__group-adding-button').exists()).toBeFalsy();
174174
});
@@ -218,7 +218,7 @@ function buildDragEl(r: Rule | RuleSet, config: QueryBuilderConfig): HTMLElement
218218
}
219219

220220
function buildDragOptions(ws: Array<Wrapper<Vue, Element>>): DragOptionsInterface {
221-
const w = ws.shift() as Wrapper<QueryBuilder, Element>;
221+
const w = ws.shift() as Wrapper<Vue, Element>;
222222
const qbgi = w.vm as QueryBuilderGroupInstance;
223223

224224
return (qbgi.dragOptions as DragOptionsInterface);

0 commit comments

Comments
 (0)