mapcomplete/test/Chai.spec.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
351 B
TypeScript
Raw Normal View History

import { describe } from "mocha"
import { expect } from "chai"
describe("TestSuite", () => {
describe("function under test", () => {
it("should work", () => {
expect("abc").eq("abc")
})
})
})
2022-03-23 19:48:06 +01:00
it("global test", async () => {
expect("abc").eq("abc")
2022-03-23 19:48:06 +01:00
expect(() => {
throw "hi"
}).throws(/hi/)
})