mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-17 22:44:18 +08:00
add jasmine-given
This commit is contained in:
10
types/jasmine-given/index.d.ts
vendored
Normal file
10
types/jasmine-given/index.d.ts
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
// Type definitions for jasmine-given 2.6
|
||||
// Project: https://github.com/searls/jasmine-given
|
||||
// Definitions by: Shai Reznik <https://github.com/shairez>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare function Given(func: () => void): void;
|
||||
declare function When(func: () => void): void;
|
||||
declare function Then(func: () => void): void;
|
||||
declare function And(func: () => void): void;
|
||||
declare function Invariant(func: () => void): void;
|
||||
9
types/jasmine-given/jasmine-given-tests.ts
Normal file
9
types/jasmine-given/jasmine-given-tests.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
Given(() => { });
|
||||
|
||||
When(() => { });
|
||||
|
||||
Then(() => { });
|
||||
|
||||
And(() => { });
|
||||
|
||||
Invariant(() => {});
|
||||
22
types/jasmine-given/tsconfig.json
Normal file
22
types/jasmine-given/tsconfig.json
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"jasmine-given-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/jasmine-given/tslint.json
Normal file
1
types/jasmine-given/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user