mapcomplete/test/Chai.spec.ts

17 lines
364 B
TypeScript
Raw Normal View History

import {describe} from 'mocha'
import {expect} from 'chai'
2022-03-23 19:48:06 +01:00
import {Utils} from "../Utils";
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/)
})