Skip to content

Commit

Permalink
chore: fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
KaelWD committed Sep 26, 2023
1 parent ffb1c80 commit a7bdff2
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions packages/vuetify/src/composables/__tests__/filter.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ import { describe, expect, it } from '@jest/globals'
import { nextTick, ref } from 'vue'
import { deepEqual } from '@/util'

const itemProps = {
itemTitle: 'title',
itemValue: 'value',
itemChildren: 'children',
itemProps: 'props',
returnObject: false,
valueComparator: deepEqual,
}

describe('filter', () => {
describe('defaultFilter', () => {
it.each([
Expand All @@ -25,7 +34,7 @@ describe('filter', () => {
})

describe('filterItems', () => {
const items = Array.from({ length: 5 }, (v, k) => transformItem({} as any, {
const items = Array.from({ length: 5 }, (v, k) => transformItem(itemProps, {
title: `Foo-${k}`,
value: `fizz-${k}`,
}))
Expand Down Expand Up @@ -109,14 +118,6 @@ describe('filter', () => {
})

describe('useFilter', () => {
const itemProps = {
itemTitle: 'title',
itemValue: 'value',
itemChildren: 'children',
itemProps: 'props',
returnObject: false,
valueComparator: deepEqual,
}
const items = Array.from({ length: 50 }, (v, k) => ({
text: `item-${k}`,
value: k,
Expand Down

0 comments on commit a7bdff2

Please sign in to comment.