🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

rc-js-util

Package Overview
Dependencies
Maintainers
1
Versions
270
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-js-util - npm Package Compare versions

Comparing version

to
1.1.0

1

bin/test-utils.d.ts
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

4

package.json
{
"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