@dxos/debug
Advanced tools
Comparing version 2.12.16 to 2.12.17
@@ -22,5 +22,7 @@ "use strict"; | ||
} | ||
expect(thrown).toBeInstanceOf(errType); | ||
if (thrown === undefined || !(thrown instanceof errType)) { | ||
throw new Error(`Expected function to throw instance of ${errType.prototype.name}`); | ||
} | ||
}; | ||
exports.expectToThrow = expectToThrow; | ||
//# sourceMappingURL=throw.js.map |
{ | ||
"name": "@dxos/debug", | ||
"version": "2.12.16", | ||
"version": "2.12.17", | ||
"description": "Debug utilities", | ||
@@ -5,0 +5,0 @@ "bugs": { |
@@ -21,3 +21,5 @@ // | ||
expect(thrown).toBeInstanceOf(errType); | ||
if (thrown === undefined || !(thrown instanceof errType)) { | ||
throw new Error(`Expected function to throw instance of ${errType.prototype.name}`); | ||
} | ||
}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
61490
941