rc-js-util
Advanced tools
Comparing version 1.0.1 to 1.1.0
export declare function itShouldCallAssert(times: number, runTest: () => void): void; | ||
export declare function itShouldNotRunDebugWhenDebugIsFalse(runTest: () => void): void; | ||
export declare function expectValueToBeNearTo(value: number, expectation: number, variance?: number): void; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.itShouldNotRunDebugWhenDebugIsFalse = exports.itShouldCallAssert = void 0; | ||
exports.expectValueToBeNearTo = exports.itShouldNotRunDebugWhenDebugIsFalse = exports.itShouldCallAssert = void 0; | ||
var _debug_1 = require("./debug/_debug"); | ||
@@ -25,2 +25,8 @@ function itShouldCallAssert(times, runTest) { | ||
exports.itShouldNotRunDebugWhenDebugIsFalse = itShouldNotRunDebugWhenDebugIsFalse; | ||
function expectValueToBeNearTo(value, expectation, variance) { | ||
if (variance === void 0) { variance = 10E-7; } | ||
expect(value).toBeLessThan(expectation + variance); | ||
expect(value).toBeGreaterThan(expectation - variance); | ||
} | ||
exports.expectValueToBeNearTo = expectValueToBeNearTo; | ||
//# sourceMappingURL=test-utils.js.map |
{ | ||
"name": "rc-js-util", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"license": "MIT", | ||
@@ -17,5 +17,5 @@ "scripts": { | ||
"typescript": "~3.9.2", | ||
"rc-lint-rules": "^4.0.0" | ||
"rc-lint-rules": "^5.0.0" | ||
}, | ||
"private": false | ||
} |
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
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
47266
584
0