add jasmine-given

This commit is contained in:
Shai Reznik
2017-06-12 23:52:00 +03:00
parent 555ae8a2d1
commit d013f213a8
4 changed files with 42 additions and 0 deletions

10
types/jasmine-given/index.d.ts vendored Normal file
View 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;

View File

@@ -0,0 +1,9 @@
Given(() => { });
When(() => { });
Then(() => { });
And(() => { });
Invariant(() => {});

View 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"
]
}

View File

@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }