chore: fix and migrate unit tests to vitest
This commit is contained in:
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user