@types/jasmine
Advanced tools
Comparing version 1.3.4 to 1.3.5
@@ -19,3 +19,3 @@ // Type definitions for Jasmine 1.3 | ||
declare function expect<T>(spy: Function): jasmine.Matchers<T>; | ||
//declare function expect(spy: jasmine.Spy): jasmine.Matchers<T>; | ||
// declare function expect(spy: jasmine.Spy): jasmine.Matchers<T>; | ||
declare function expect<T>(actual: any): jasmine.Matchers<T>; | ||
@@ -30,3 +30,2 @@ | ||
declare namespace jasmine { | ||
var Clock: Clock; | ||
@@ -43,5 +42,4 @@ | ||
interface Any { | ||
new(expectedClass: any): any; | ||
new (expectedClass: any): any; | ||
jasmineMatches(other: any): boolean; | ||
@@ -52,3 +50,3 @@ jasmineToString(): string; | ||
interface ObjectContaining { | ||
new (sample: any): any; | ||
new(sample: any): any; | ||
@@ -60,5 +58,4 @@ jasmineMatches(other: any, mismatchKeys: any[], mismatchValues: any[]): boolean; | ||
interface Block { | ||
new(env: Env, func: SpecFunction, spec: Spec): any; | ||
new (env: Env, func: SpecFunction, spec: Spec): any; | ||
execute(onComplete: () => void): void; | ||
@@ -68,7 +65,7 @@ } | ||
interface WaitsBlock extends Block { | ||
new (env: Env, timeout: number, spec: Spec): any; | ||
new(env: Env, timeout: number, spec: Spec): any; | ||
} | ||
interface WaitsForBlock extends Block { | ||
new (env: Env, timeout: number, latchFunction: SpecFunction, message: string, spec: Spec): any; | ||
new(env: Env, timeout: number, latchFunction: SpecFunction, message: string, spec: Spec): any; | ||
} | ||
@@ -117,3 +114,5 @@ | ||
contains_(haystack: any, needle: any): boolean; | ||
addEqualityTester(equalityTester: (a: any, b: any, env: Env, mismatchKeys: string[], mismatchValues: string[]) => boolean): void; | ||
addEqualityTester( | ||
equalityTester: (a: any, b: any, env: Env, mismatchKeys: string[], mismatchValues: string[]) => boolean, | ||
): void; | ||
specFilter(spec: Spec): boolean; | ||
@@ -123,5 +122,4 @@ } | ||
interface FakeTimer { | ||
new(): any; | ||
new (): any; | ||
reset(): void; | ||
@@ -134,3 +132,3 @@ tick(millis: number): void; | ||
interface HtmlReporter { | ||
new (): any; | ||
new(): any; | ||
} | ||
@@ -158,3 +156,3 @@ | ||
interface MessageResult extends Result { | ||
interface MessageResult extends Result { | ||
values: any; | ||
@@ -164,3 +162,3 @@ trace: Trace; | ||
interface ExpectationResult extends Result { | ||
interface ExpectationResult extends Result { | ||
matcherName: string; | ||
@@ -181,5 +179,4 @@ passed(): boolean; | ||
interface PrettyPrinter { | ||
new(): any; | ||
new (): any; | ||
format(value: any): void; | ||
@@ -198,5 +195,4 @@ iterateObject(obj: any, fn: (property: string, isGetter: boolean) => void): void; | ||
interface Queue { | ||
new(env: any): any; | ||
new (env: any): any; | ||
env: Env; | ||
@@ -220,5 +216,4 @@ ensured: boolean[]; | ||
interface Matchers<T> { | ||
new(env: Env, actual: any, spec: Env, isNot?: boolean): any; | ||
new (env: Env, actual: any, spec: Env, isNot?: boolean): any; | ||
env: Env; | ||
@@ -267,5 +262,4 @@ actual: any; | ||
interface Runner { | ||
new(env: Env): any; | ||
new (env: Env): any; | ||
execute(): void; | ||
@@ -295,5 +289,4 @@ beforeEach(beforeEachFunction: SpecFunction): void; | ||
interface Spec extends SuiteOrSpec { | ||
new(env: Env, suite: Suite, description: string): any; | ||
new (env: Env, suite: Suite, description: string): any; | ||
suite: Suite; | ||
@@ -335,5 +328,4 @@ | ||
interface Suite extends SuiteOrSpec { | ||
new(env: Env, description: string, specDefinitions: () => void, parentSuite: Suite): any; | ||
new (env: Env, description: string, specDefinitions: () => void, parentSuite: Suite): any; | ||
parentSuite: Suite; | ||
@@ -362,3 +354,3 @@ | ||
calls: any[]; | ||
mostRecentCall: { args: any[]; }; | ||
mostRecentCall: { args: any[] }; | ||
argsForCall: any[]; | ||
@@ -382,3 +374,2 @@ wasCalled: boolean; | ||
interface JsApiReporter extends Reporter { | ||
started: boolean; | ||
@@ -389,3 +380,3 @@ finished: boolean; | ||
new (): any; | ||
new(): any; | ||
@@ -392,0 +383,0 @@ suites(): Suite[]; |
{ | ||
"name": "@types/jasmine", | ||
"version": "1.3.4", | ||
"version": "1.3.5", | ||
"description": "TypeScript definitions for Jasmine", | ||
@@ -23,4 +23,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jasmine", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "18b5ac53f623cec7401154141666339bcd54221433d92cb8c31db3e2620eb9e5", | ||
"typeScriptVersion": "3.6" | ||
"typesPublisherContentHash": "0db09341253551ad95708905b2b77b95274a2dd60aaf5732a72b04094dff740d", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Tue, 06 Jul 2021 21:33:42 GMT | ||
* Last updated: Fri, 15 Sep 2023 20:36:37 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: `afterEach`, `beforeEach`, `describe`, `expect`, `it`, `jasmine`, `runs`, `spyOn`, `waits`, `waitsFor`, `xdescribe`, `xit` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
312
0
14170