fix chai, chai-jquery and sinon-chai for TS 0.9

This commit is contained in:
Neil Stalker
2013-06-21 16:03:05 +01:00
parent 7b441a8d21
commit 18628d1490
5 changed files with 7 additions and 12 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
/// <reference path="../chai/chai.d.ts" />
/// <reference path="chai-jquery.d.ts" />
/// <reference path="../chai/chai.d.ts" />
/// <reference path="chai-jquery.d.ts" />
declare var $;
var expect = chai.expect;
@@ -330,7 +330,7 @@ suite('assert', function () {
test('isArray', function () {
assert.isArray([]);
assert.isArray(new Array);
assert.isArray(new Array<any>());
err(function () {
assert.isArray({});
@@ -345,7 +345,7 @@ suite('assert', function () {
}, "expected [] not to be an array");
err(function () {
assert.isNotArray(new Array);
assert.isNotArray(new Array<any>());
}, "expected [] not to be an array");
});
-1
View File
@@ -1,6 +1,5 @@
/// <reference path="chai.d.ts" />
var chai: chai;
var expect = chai.expect;
function test_be() {
+1 -5
View File
@@ -116,10 +116,6 @@ declare module chai {
to: To;
}
function expect(target: any): chai.ExpectMatchers;
}
interface chai {
expect: {
(target: any): chai.ExpectMatchers;
}
}
+2 -2
View File
@@ -1,5 +1,5 @@
/// <reference path="../chai/chai.d.ts" />
/// <reference path="sinon-chai.d.ts" />
/// <reference path="../chai/chai.d.ts" />
/// <reference path="sinon-chai.d.ts" />
var expect = chai.expect;