Adding test for new mocha API

This commit is contained in:
Phips Peter
2015-05-12 11:57:21 -07:00
parent 372a2c4cd9
commit 66d8808c98

View File

@@ -24,6 +24,18 @@ function test_context() {
});
}
function test_suite() {
suite('some context', () => { });
suite.only('some context', () => { });
suite.skip('some context', () => { });
suite('some context', function() {
this.timeout(2000);
});
}
function test_it() {
it('does something', () => { });
@@ -39,6 +51,21 @@ function test_it() {
});
}
function test_test() {
test('does something', () => { });
test('does something', (done) => { done(); });
test.only('does something', () => { });
test.skip('does something', () => { });
test('does something', function () {
this.timeout(2000);
});
}
function test_before() {
before(() => { });
@@ -221,4 +248,4 @@ function test_run_withOnComplete() {
instance.run((failures: number): void => {
console.log(failures);
});
}
}