From eb75fdf39e21adcca4fbcd975c79a96a42d07535 Mon Sep 17 00:00:00 2001 From: Vasya Aksyonov Date: Sat, 28 Feb 2015 11:57:08 +0500 Subject: [PATCH] Expect.js commonjs modules support and tests --- expect.js/expect.js-tests.ts | 4 ++-- expect.js/expect.js.d.ts | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/expect.js/expect.js-tests.ts b/expect.js/expect.js-tests.ts index 098df13bba..7b19219bb4 100644 --- a/expect.js/expect.js-tests.ts +++ b/expect.js/expect.js-tests.ts @@ -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'); -} +} \ No newline at end of file diff --git a/expect.js/expect.js.d.ts b/expect.js/expect.js.d.ts index 8e5cfe1421..2db884b97b 100644 --- a/expect.js/expect.js.d.ts +++ b/expect.js/expect.js.d.ts @@ -214,3 +214,9 @@ declare module Expect { own: Assertion; } } + +declare module "expect.js" { + + export = expect; + +} \ No newline at end of file