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