Skip to content

Commit bfbf554

Browse files
committed
chore: run format
1 parent 0bcb610 commit bfbf554

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app/composables/useVisibleItems.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
import { computed, shallowRef, toValue } from 'vue'
22
import type { MaybeRefOrGetter } from 'vue'
33

4-
export function useVisibleItems<T>(
5-
items: MaybeRefOrGetter<T[]>,
6-
limit: number,
7-
) {
4+
export function useVisibleItems<T>(items: MaybeRefOrGetter<T[]>, limit: number) {
85
const showAll = shallowRef(false)
96

107
const visibleItems = computed(() => {

test/unit/app/composables/use-visible-items.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,10 @@ describe('useVisibleItems', () => {
132132

133133
it('reacts to getter function source changes', () => {
134134
const count = ref(2)
135-
const { visibleItems } = useVisibleItems(() => Array.from({ length: count.value }, (_, i) => i), 3)
135+
const { visibleItems } = useVisibleItems(
136+
() => Array.from({ length: count.value }, (_, i) => i),
137+
3,
138+
)
136139

137140
expect(visibleItems.value).toEqual([0, 1])
138141

0 commit comments

Comments
 (0)