Socket
Socket
Sign inDemoInstall

@serenity-js/assertions

Package Overview
Dependencies
Maintainers
1
Versions
360
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@serenity-js/assertions - npm Package Compare versions

Comparing version 3.1.5 to 3.1.6

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

## [3.1.6](https://github.com/serenity-js/serenity-js/compare/v3.1.5...v3.1.6) (2023-04-18)
### Bug Fixes
* **webdriverio:** upgraded to TypeScript 5 and WebdriverIO 7.31.1 ([15b1ba7](https://github.com/serenity-js/serenity-js/commit/15b1ba77e157d77123a2e8922414e937c0d2869d)), closes [#1558](https://github.com/serenity-js/serenity-js/issues/1558) [#1651](https://github.com/serenity-js/serenity-js/issues/1651)
## [3.1.5](https://github.com/serenity-js/serenity-js/compare/v3.1.4...v3.1.5) (2023-04-18)

@@ -8,0 +19,0 @@

2

lib/expectations/isCloseTo.d.ts

@@ -23,3 +23,3 @@ import { Expectation } from '@serenity-js/core';

*/
export declare const isCloseTo: (...answerableArguments: unknown[]) => Expectation<number>;
export declare const isCloseTo: (expected: import("@serenity-js/core").Answerable<number>, absoluteTolerance?: import("@serenity-js/core").Answerable<number>) => Expectation<number>;
//# sourceMappingURL=isCloseTo.d.ts.map

@@ -26,3 +26,5 @@ "use strict";

*/
exports.isCloseTo = core_1.Expectation.define('isCloseTo', (expected, absoluteTolerance = 1e-9) => (0, core_1.d) `have value close to ${expected} ±${absoluteTolerance}`, (actual, expected, absoluteTolerance = 1e-9) => {
exports.isCloseTo = core_1.Expectation.define('isCloseTo', (expected, absoluteTolerance = 1e-9) => (0, core_1.d) `have value close to ${expected} ±${absoluteTolerance}`,
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
(actual, expected, absoluteTolerance = 1e-9) => {
// short-circuit exact equality

@@ -29,0 +31,0 @@ if (actual === expected) {

{
"name": "@serenity-js/assertions",
"version": "3.1.5",
"version": "3.1.6",
"description": "Screenplay-style assertion library",

@@ -46,3 +46,3 @@ "author": {

"dependencies": {
"@serenity-js/core": "3.1.5",
"@serenity-js/core": "3.1.6",
"tiny-types": "^1.19.1"

@@ -58,5 +58,5 @@ },

"ts-node": "^10.9.1",
"typescript": "^4.9.5"
"typescript": "^5.0.4"
},
"gitHead": "31f621a7c827e20ba07a86a2f7c77d941784bb0a"
"gitHead": "825ecf4f0dd507e78da8b0634f659ecd3ddfb976"
}

@@ -26,3 +26,4 @@ import { d, Expectation } from '@serenity-js/core';

'isCloseTo', (expected, absoluteTolerance = 1e-9) => d`have value close to ${ expected } ±${ absoluteTolerance }`,
(actual: number, expected: number, absoluteTolerance = 1e-9) => {
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
(actual: number, expected: number, absoluteTolerance: number = 1e-9) => {
// short-circuit exact equality

@@ -29,0 +30,0 @@ if (actual === expected) {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc