chore: fix and migrate unit tests to vitest

This commit is contained in:
Christian Andolf
2025-06-27 13:35:41 +02:00
parent a91c28096d
commit ff40ef72c4
26 changed files with 818 additions and 2835 deletions

View File

@@ -28,18 +28,17 @@ describe("getSearchTokens", () => {
}
const result = getSearchTokens(location as Location)
expect(result.toSorted()).toEqual(
[
"ångström",
"café",
"münchen",
"frånce",
"angstrom",
"cafe",
"munchen",
"france",
].toSorted()
)
expect(result).toEqual([
"angstrom",
"cafe",
"munchen",
"france",
"ångström",
"café",
"münchen",
"frånce",
])
})
it("should filter out empty or falsey tokens", () => {