typescript unit testing

Solutions on MaxInterview for typescript unit testing by the best coders in the world

showing results for - "typescript unit testing"
Cristóbal
10 Jan 2017
1// TYPESCRIPT UNIT TESTING
2// MOCHA
3var assert = require('assert');
4
5describe('Test Suite 1', function() {
6    it('test1', function() {
7      	assert.ok(1===1, "This will not fail");
8        assert.ok(true, "This will not fail");
9      	asset.ok(false, "This will fail");
10    })
11      
12    // more tests
13})
14
15//CLI 
16// - INSTALL
17
18`npm install mocha`
19
20// - RUN
21
22`mocha file.spec.ts`
23