Skip to content

Commit 686182e

Browse files
committed
test: move structured-filters tests to nuxt runtime
1 parent e7ce1d5 commit 686182e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

test/unit/structured-filters.spec.ts renamed to test/nuxt/composables/structured-filters.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import { describe, expect, it } from 'vitest'
2-
import { ref } from 'vue'
32
import type { NpmSearchResult } from '#shared/types'
4-
import { useStructuredFilters } from '../../app/composables/useStructuredFilters'
53

64
// Helper to create mock package results
75
function createPackage(overrides: {
@@ -27,6 +25,7 @@ function createPackage(overrides: {
2725
updated: overrides.updated ?? '2024-01-01T00:00:00.000Z',
2826
flags: { insecure: overrides.insecure ?? 0 },
2927
score: { final: 0.5, detail: { quality: 0.5, popularity: 0.5, maintenance: 0.5 } },
28+
searchScore: 1000,
3029
}
3130
}
3231

0 commit comments

Comments
 (0)