mapcomplete/test/Models/ThemeConfig/SourceConfig.spec.ts
2023-07-15 18:55:03 +02:00

18 lines
577 B
TypeScript

import SourceConfig from "../../../src/Models/ThemeConfig/SourceConfig"
import { TagUtils } from "../../../src/Logic/Tags/TagUtils"
import { describe, expect, it } from "vitest"
describe("SourceConfig", () => {
it("should throw an error on conflicting tags", () => {
expect(() => {
new SourceConfig(
{
osmTags: TagUtils.Tag({
and: ["x=y", "a=b", "x!=y"],
}),
},
false
)
}).toThrowError(/tags are conflicting/)
})
})