forked from MapComplete/MapComplete
Port tests to vitest
This commit is contained in:
parent
64a4d7e929
commit
228ceb120d
33 changed files with 673 additions and 326 deletions
|
@ -1,9 +1,8 @@
|
|||
import { describe } from "mocha"
|
||||
import { expect } from "chai"
|
||||
import { Utils } from "../../Utils"
|
||||
import { existsSync, mkdirSync, readFileSync, rmdirSync, unlinkSync } from "fs"
|
||||
import ScriptUtils from "../../scripts/ScriptUtils"
|
||||
import { main } from "../../scripts/generateCache"
|
||||
import { describe, expect, it } from "vitest"
|
||||
|
||||
function initDownloads(query: string) {
|
||||
const d = {
|
||||
|
@ -7613,10 +7612,8 @@ describe("GenerateCache", () => {
|
|||
encoding: "utf8",
|
||||
})
|
||||
)
|
||||
expect(birdhides.features.length).deep.equal(5)
|
||||
expect(
|
||||
birdhides.features.some((f) => f.properties.id === "node/5158056232"),
|
||||
"Didn't find birdhide node/5158056232 "
|
||||
).true
|
||||
expect(birdhides.features.length).toEqual(5)
|
||||
// "Didn't find birdhide node/5158056232 "
|
||||
expect(birdhides.features.some((f) => f.properties.id === "node/5158056232")).toBe(true)
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue