Expect.js commonjs modules support and tests

This commit is contained in:
Vasya Aksyonov
2015-02-28 11:57:08 +05:00
parent 3882d337bb
commit eb75fdf39e
2 changed files with 8 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ function test_expect_properties() {
expect(0).to.not.include;
expect(0).to.not.only.have.own;
expect(0).to.only.have.own;
expect(0).be
expect(0).be;
}
function test_ok() {
@@ -118,4 +118,4 @@ function test_lessThan() {
function test_fail() {
expect().fail();
expect().fail('Custom failure message');
}
}

View File

@@ -214,3 +214,9 @@ declare module Expect {
own: Assertion;
}
}
declare module "expect.js" {
export = expect;
}