forked from MapComplete/MapComplete
		
	
		
			
				
	
	
		
			17 lines
		
	
	
	
		
			351 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			351 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
import { describe } from "mocha"
 | 
						|
import { expect } from "chai"
 | 
						|
 | 
						|
describe("TestSuite", () => {
 | 
						|
    describe("function under test", () => {
 | 
						|
        it("should work", () => {
 | 
						|
            expect("abc").eq("abc")
 | 
						|
        })
 | 
						|
    })
 | 
						|
})
 | 
						|
 | 
						|
it("global test", async () => {
 | 
						|
    expect("abc").eq("abc")
 | 
						|
    expect(() => {
 | 
						|
        throw "hi"
 | 
						|
    }).throws(/hi/)
 | 
						|
})
 |