@types/qunit
Advanced tools
Comparing version 2.5.3 to 2.5.4
@@ -240,2 +240,30 @@ // Type definitions for QUnit v2.5.0 | ||
/** | ||
* Test if the provided promise rejects, and optionally compare the | ||
* rejection value. | ||
* | ||
* When testing code that is expected to return a rejected promise based on | ||
* a specific set of circumstances, use assert.rejects() for testing and | ||
* comparison. | ||
* | ||
* The expectedMatcher argument can be: | ||
* A function that returns true when the assertion should be considered passing. | ||
* An Error object | ||
* A base constructor to use ala rejectionValue instanceof expectedMatcher | ||
* A RegExp that matches (or partially matches) rejectionValue.toString() | ||
* | ||
* Note: in order to avoid confusion between the message and the expectedMatcher, | ||
* the expectedMatcher can not be a string. | ||
* | ||
* @param promise promise to test for rejection | ||
* @param expectedMatcher Rejection value matcher | ||
* @param message A short description of the assertion | ||
*/ | ||
rejects(promise: Promise<any>, message?: string): void; | ||
rejects( | ||
promise: Promise<any>, | ||
expectedMatcher?: any, | ||
message?: string, | ||
): void; | ||
/** | ||
* A marker for progress in a given test. | ||
@@ -242,0 +270,0 @@ * |
{ | ||
"name": "@types/qunit", | ||
"version": "2.5.3", | ||
"version": "2.5.4", | ||
"description": "TypeScript definitions for QUnit", | ||
@@ -19,2 +19,3 @@ "license": "MIT", | ||
"main": "", | ||
"types": "index", | ||
"repository": { | ||
@@ -26,4 +27,4 @@ "type": "git", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "9cacab50e8c9c04b3cbbf8dffc6fa375d5d4a0585de9ef1264403e2205e0a654", | ||
"typesPublisherContentHash": "ee87b966cff6fe941e1f11d28abd04d4f80f5e4f352545f32116efad0ebc44b1", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Tue, 04 Sep 2018 23:00:34 GMT | ||
* Last updated: Fri, 18 Jan 2019 22:59:51 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: QUnit |
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
27608
635