mapcomplete/test/Chai.spec.ts

18 lines
351 B
TypeScript
Raw Normal View History

2022-09-08 21:40:48 +02:00
import { describe } from "mocha"
import { expect } from "chai"
describe("TestSuite", () => {
describe("function under test", () => {
it("should work", () => {
2022-09-08 21:40:48 +02:00
expect("abc").eq("abc")
})
})
})
2022-09-08 21:40:48 +02:00
it("global test", async () => {
expect("abc").eq("abc")
2022-09-08 21:40:48 +02:00
expect(() => {
throw "hi"
}).throws(/hi/)
})