mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 09:01:45 +08:00
updated chai tdd, added chai-fuzzy tdd
This commit is contained in:
17
chai-fuzzy/chai-fuzzy-assert.d.ts
vendored
Normal file
17
chai-fuzzy/chai-fuzzy-assert.d.ts
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
// Type definitions for chai-fuzzy 1.3.0 assert style
|
||||
// Project: http://chaijs.com/plugins/chai-fuzzy
|
||||
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
///<reference path="../chai/chai-assert.d.ts" />
|
||||
|
||||
declare module chai {
|
||||
interface Assert {
|
||||
like(act:any, exp:any, msg?:string);
|
||||
notLike(act:any, exp:any, msg?:string);
|
||||
containOneLike(act:any, exp:any, msg?:string);
|
||||
notContainOneLike(act:any, exp:any, msg?:string);
|
||||
jsonOf(act:any, exp:any, msg?:string);
|
||||
notJsonOf(act:any, exp:any, msg?:string);
|
||||
}
|
||||
}
|
||||
5
chai/chai-assert.d.ts
vendored
5
chai/chai-assert.d.ts
vendored
@@ -1,4 +1,4 @@
|
||||
// Type definitions for chai v1.6.0 assert style
|
||||
// Type definitions for chai v1.7.0 assert style
|
||||
// Project: http://chaijs.com/
|
||||
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
@@ -10,7 +10,9 @@ declare module chai
|
||||
(express:any, msg?:string);
|
||||
|
||||
fail(actual?:any, expected?:any, msg?:string, operator?:string);
|
||||
|
||||
ok(val:any, msg?:string);
|
||||
notOk(val:any, msg?:string);
|
||||
|
||||
equal(act:any, exp:any, msg?:string);
|
||||
notEqual(act:any, exp:any, msg?:string);
|
||||
@@ -71,7 +73,6 @@ declare module chai
|
||||
propertyVal(obj:Object, prop:string, val:any, msg?:string);
|
||||
propertyNotVal(obj:Object, prop:string, val:any, msg?:string);
|
||||
|
||||
|
||||
deepPropertyVal(obj:Object, prop:string, val:any, msg?:string);
|
||||
deepPropertyNotVal(obj:Object, prop:string, val:any, msg?:string);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user