@serenity-js/assertions 3.0.0-rc.8 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +83 -1883
- package/README.md +21 -21
- package/lib/Ensure.d.ts +75 -84
- package/lib/Ensure.d.ts.map +1 -0
- package/lib/Ensure.js +103 -123
- package/lib/Ensure.js.map +1 -1
- package/lib/EnsureEventually.d.ts +97 -0
- package/lib/EnsureEventually.d.ts.map +1 -0
- package/lib/EnsureEventually.js +143 -0
- package/lib/EnsureEventually.js.map +1 -0
- package/lib/expectations/and.d.ts +22 -1
- package/lib/expectations/and.d.ts.map +1 -0
- package/lib/expectations/and.js +30 -5
- package/lib/expectations/and.js.map +1 -1
- package/lib/expectations/contain.d.ts +27 -2
- package/lib/expectations/contain.d.ts.map +1 -0
- package/lib/expectations/contain.js +25 -5
- package/lib/expectations/contain.js.map +1 -1
- package/lib/expectations/containAtLeastOneItemThat.d.ts +23 -1
- package/lib/expectations/containAtLeastOneItemThat.d.ts.map +1 -0
- package/lib/expectations/containAtLeastOneItemThat.js +29 -7
- package/lib/expectations/containAtLeastOneItemThat.js.map +1 -1
- package/lib/expectations/containItemsWhereEachItem.d.ts +22 -0
- package/lib/expectations/containItemsWhereEachItem.d.ts.map +1 -0
- package/lib/expectations/containItemsWhereEachItem.js +29 -7
- package/lib/expectations/containItemsWhereEachItem.js.map +1 -1
- package/lib/expectations/endsWith.d.ts +22 -2
- package/lib/expectations/endsWith.d.ts.map +1 -0
- package/lib/expectations/endsWith.js +20 -5
- package/lib/expectations/endsWith.js.map +1 -1
- package/lib/expectations/equals.d.ts +28 -2
- package/lib/expectations/equals.d.ts.map +1 -0
- package/lib/expectations/equals.js +26 -5
- package/lib/expectations/equals.js.map +1 -1
- package/lib/expectations/includes.d.ts +22 -2
- package/lib/expectations/includes.d.ts.map +1 -0
- package/lib/expectations/includes.js +20 -5
- package/lib/expectations/includes.js.map +1 -1
- package/lib/expectations/index.d.ts +3 -0
- package/lib/expectations/index.d.ts.map +1 -0
- package/lib/expectations/index.js +7 -1
- package/lib/expectations/index.js.map +1 -1
- package/lib/expectations/isAfter.d.ts +42 -2
- package/lib/expectations/isAfter.d.ts.map +1 -0
- package/lib/expectations/isAfter.js +40 -5
- package/lib/expectations/isAfter.js.map +1 -1
- package/lib/expectations/isBefore.d.ts +42 -2
- package/lib/expectations/isBefore.d.ts.map +1 -0
- package/lib/expectations/isBefore.js +40 -5
- package/lib/expectations/isBefore.js.map +1 -1
- package/lib/expectations/isCloseTo.d.ts +24 -0
- package/lib/expectations/isCloseTo.d.ts.map +1 -0
- package/lib/expectations/isCloseTo.js +37 -0
- package/lib/expectations/isCloseTo.js.map +1 -0
- package/lib/expectations/isFalse.d.ts +19 -0
- package/lib/expectations/isFalse.d.ts.map +1 -0
- package/lib/expectations/isFalse.js +18 -0
- package/lib/expectations/isFalse.js.map +1 -1
- package/lib/expectations/isGreaterThan.d.ts +45 -2
- package/lib/expectations/isGreaterThan.d.ts.map +1 -0
- package/lib/expectations/isGreaterThan.js +43 -5
- package/lib/expectations/isGreaterThan.js.map +1 -1
- package/lib/expectations/isLessThan.d.ts +45 -2
- package/lib/expectations/isLessThan.d.ts.map +1 -0
- package/lib/expectations/isLessThan.js +43 -5
- package/lib/expectations/isLessThan.js.map +1 -1
- package/lib/expectations/isPresent.d.ts +58 -8
- package/lib/expectations/isPresent.d.ts.map +1 -0
- package/lib/expectations/isPresent.js +60 -11
- package/lib/expectations/isPresent.js.map +1 -1
- package/lib/expectations/isTrue.d.ts +19 -0
- package/lib/expectations/isTrue.d.ts.map +1 -0
- package/lib/expectations/isTrue.js +18 -0
- package/lib/expectations/isTrue.js.map +1 -1
- package/lib/expectations/matches.d.ts +22 -2
- package/lib/expectations/matches.d.ts.map +1 -0
- package/lib/expectations/matches.js +20 -5
- package/lib/expectations/matches.js.map +1 -1
- package/lib/expectations/not.d.ts +23 -1
- package/lib/expectations/not.d.ts.map +1 -0
- package/lib/expectations/not.js +32 -10
- package/lib/expectations/not.js.map +1 -1
- package/lib/expectations/or.d.ts +22 -1
- package/lib/expectations/or.d.ts.map +1 -0
- package/lib/expectations/or.js +29 -9
- package/lib/expectations/or.js.map +1 -1
- package/lib/expectations/property.d.ts +62 -0
- package/lib/expectations/property.d.ts.map +1 -0
- package/lib/expectations/property.js +85 -0
- package/lib/expectations/property.js.map +1 -0
- package/lib/expectations/startsWith.d.ts +22 -2
- package/lib/expectations/startsWith.d.ts.map +1 -0
- package/lib/expectations/startsWith.js +20 -5
- package/lib/expectations/startsWith.js.map +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +6 -5
- package/lib/index.js.map +1 -1
- package/package.json +19 -42
- package/src/Ensure.ts +110 -136
- package/src/EnsureEventually.ts +173 -0
- package/src/expectations/and.ts +38 -14
- package/src/expectations/contain.ts +30 -5
- package/src/expectations/containAtLeastOneItemThat.ts +40 -10
- package/src/expectations/containItemsWhereEachItem.ts +35 -5
- package/src/expectations/endsWith.ts +25 -5
- package/src/expectations/equals.ts +31 -5
- package/src/expectations/includes.ts +25 -5
- package/src/expectations/index.ts +2 -0
- package/src/expectations/isAfter.ts +45 -5
- package/src/expectations/isBefore.ts +45 -5
- package/src/expectations/isCloseTo.ts +40 -0
- package/src/expectations/isFalse.ts +19 -1
- package/src/expectations/isGreaterThan.ts +48 -5
- package/src/expectations/isLessThan.ts +48 -5
- package/src/expectations/isPresent.ts +62 -13
- package/src/expectations/isTrue.ts +19 -1
- package/src/expectations/matches.ts +25 -5
- package/src/expectations/not.ts +28 -5
- package/src/expectations/or.ts +28 -6
- package/src/expectations/property.ts +93 -0
- package/src/expectations/startsWith.ts +25 -5
- package/src/index.ts +1 -1
- package/tsconfig.build.json +10 -0
- package/tsconfig.eslint.json +0 -10
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"endsWith.d.ts","sourceRoot":"","sources":["../../src/expectations/endsWith.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,QAAQ,mFAIpB,CAAA"}
|
|
@@ -2,9 +2,24 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.endsWith = void 0;
|
|
4
4
|
const core_1 = require("@serenity-js/core");
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Creates an {@apilink Expectation|expectation} that is met when the actual `string` value
|
|
7
|
+
* ends with the resolved value of `expected`.
|
|
8
|
+
*
|
|
9
|
+
* ## Ensuring that a given string ends with an expected substring
|
|
10
|
+
*
|
|
11
|
+
* ```ts
|
|
12
|
+
* import { actorCalled } from '@serenity-js/core'
|
|
13
|
+
* import { Ensure, endsWith } from '@serenity-js/assertions'
|
|
14
|
+
*
|
|
15
|
+
* await actorCalled('Ester').attemptsTo(
|
|
16
|
+
* Ensure.that('Hello World!', endsWith('!')),
|
|
17
|
+
* )
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* @param expected
|
|
21
|
+
*
|
|
22
|
+
* @group Expectations
|
|
23
|
+
*/
|
|
24
|
+
exports.endsWith = core_1.Expectation.define('endsWith', 'end with', (actual, expected) => actual.endsWith(expected));
|
|
10
25
|
//# sourceMappingURL=endsWith.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endsWith.js","sourceRoot":"","sources":["../../src/expectations/endsWith.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"endsWith.js","sourceRoot":"","sources":["../../src/expectations/endsWith.ts"],"names":[],"mappings":";;;AAAA,4CAAgD;AAEhD;;;;;;;;;;;;;;;;;;GAkBG;AACU,QAAA,QAAQ,GAAG,kBAAW,CAAC,MAAM,CACtC,UAAU,EAAE,UAAU,EACtB,CAAC,MAAc,EAAE,QAAgB,EAAE,EAAE,CACjC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAChC,CAAA"}
|
|
@@ -1,2 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Expectation } from '@serenity-js/core';
|
|
2
|
+
/**
|
|
3
|
+
* Produces an {@apilink Expectation|expectation} that is met when the actual value
|
|
4
|
+
* is equal to the resolved value of `expectedValue`.
|
|
5
|
+
*
|
|
6
|
+
* Note that the equality check performs comparison **by value**
|
|
7
|
+
* using [TinyTypes `equal`](https://github.com/jan-molak/tiny-types/blob/master/src/objects/equal.ts).
|
|
8
|
+
*
|
|
9
|
+
* ## Ensuring that the actual value equals expected value
|
|
10
|
+
*
|
|
11
|
+
* ```ts
|
|
12
|
+
* import { actorCalled } from '@serenity-js/core'
|
|
13
|
+
* import { Ensure, equals } from '@serenity-js/assertions'
|
|
14
|
+
*
|
|
15
|
+
* const actual = { name: 'apples' }
|
|
16
|
+
* const expected = { name: 'apples' }
|
|
17
|
+
*
|
|
18
|
+
* await actorCalled('Ester').attemptsTo(
|
|
19
|
+
* Ensure.that(actual, equals(expected)),
|
|
20
|
+
* )
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @param expectedValue
|
|
24
|
+
*
|
|
25
|
+
* @group Expectations
|
|
26
|
+
*/
|
|
27
|
+
export declare const equals: <T>(expected: import("@serenity-js/core").Answerable<T>) => Expectation<T>;
|
|
28
|
+
//# sourceMappingURL=equals.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"equals.d.ts","sourceRoot":"","sources":["../../src/expectations/equals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGhD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,MAAM,4EAIlB,CAAC"}
|
|
@@ -3,9 +3,30 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.equals = void 0;
|
|
4
4
|
const core_1 = require("@serenity-js/core");
|
|
5
5
|
const objects_1 = require("tiny-types/lib/objects");
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Produces an {@apilink Expectation|expectation} that is met when the actual value
|
|
8
|
+
* is equal to the resolved value of `expectedValue`.
|
|
9
|
+
*
|
|
10
|
+
* Note that the equality check performs comparison **by value**
|
|
11
|
+
* using [TinyTypes `equal`](https://github.com/jan-molak/tiny-types/blob/master/src/objects/equal.ts).
|
|
12
|
+
*
|
|
13
|
+
* ## Ensuring that the actual value equals expected value
|
|
14
|
+
*
|
|
15
|
+
* ```ts
|
|
16
|
+
* import { actorCalled } from '@serenity-js/core'
|
|
17
|
+
* import { Ensure, equals } from '@serenity-js/assertions'
|
|
18
|
+
*
|
|
19
|
+
* const actual = { name: 'apples' }
|
|
20
|
+
* const expected = { name: 'apples' }
|
|
21
|
+
*
|
|
22
|
+
* await actorCalled('Ester').attemptsTo(
|
|
23
|
+
* Ensure.that(actual, equals(expected)),
|
|
24
|
+
* )
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* @param expectedValue
|
|
28
|
+
*
|
|
29
|
+
* @group Expectations
|
|
30
|
+
*/
|
|
31
|
+
exports.equals = core_1.Expectation.define('equals', 'equal', (actual, expected) => (0, objects_1.equal)(actual, expected));
|
|
11
32
|
//# sourceMappingURL=equals.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"equals.js","sourceRoot":"","sources":["../../src/expectations/equals.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"equals.js","sourceRoot":"","sources":["../../src/expectations/equals.ts"],"names":[],"mappings":";;;AAAA,4CAAgD;AAChD,oDAA+C;AAE/C;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACU,QAAA,MAAM,GAAG,kBAAW,CAAC,MAAM,CACpC,QAAQ,EAAE,OAAO,EACjB,CAAI,MAAS,EAAE,QAAW,EAAE,EAAE,CAC1B,IAAA,eAAK,EAAC,MAAM,EAAE,QAAQ,CAAC,CAC9B,CAAC"}
|
|
@@ -1,2 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Expectation } from '@serenity-js/core';
|
|
2
|
+
/**
|
|
3
|
+
* Creates an {@apilink Expectation|expectation} that is met when the actual `string` value
|
|
4
|
+
* includes a substring of `expected`.
|
|
5
|
+
*
|
|
6
|
+
* ## Ensuring that a given string includes the expected substring
|
|
7
|
+
*
|
|
8
|
+
* ```ts
|
|
9
|
+
* import { actorCalled } from '@serenity-js/core'
|
|
10
|
+
* import { Ensure, includes } from '@serenity-js/assertions'
|
|
11
|
+
*
|
|
12
|
+
* await actorCalled('Ester').attemptsTo(
|
|
13
|
+
* Ensure.that('Hello World!', includes('World')),
|
|
14
|
+
* )
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* @param expected
|
|
18
|
+
*
|
|
19
|
+
* @group Expectations
|
|
20
|
+
*/
|
|
21
|
+
export declare const includes: (expected: import("@serenity-js/core").Answerable<string>) => Expectation<string>;
|
|
22
|
+
//# sourceMappingURL=includes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"includes.d.ts","sourceRoot":"","sources":["../../src/expectations/includes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,QAAQ,mFAIpB,CAAC"}
|
|
@@ -2,9 +2,24 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.includes = void 0;
|
|
4
4
|
const core_1 = require("@serenity-js/core");
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Creates an {@apilink Expectation|expectation} that is met when the actual `string` value
|
|
7
|
+
* includes a substring of `expected`.
|
|
8
|
+
*
|
|
9
|
+
* ## Ensuring that a given string includes the expected substring
|
|
10
|
+
*
|
|
11
|
+
* ```ts
|
|
12
|
+
* import { actorCalled } from '@serenity-js/core'
|
|
13
|
+
* import { Ensure, includes } from '@serenity-js/assertions'
|
|
14
|
+
*
|
|
15
|
+
* await actorCalled('Ester').attemptsTo(
|
|
16
|
+
* Ensure.that('Hello World!', includes('World')),
|
|
17
|
+
* )
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* @param expected
|
|
21
|
+
*
|
|
22
|
+
* @group Expectations
|
|
23
|
+
*/
|
|
24
|
+
exports.includes = core_1.Expectation.define('includes', 'include', (actual, expected) => actual.includes(expected));
|
|
10
25
|
//# sourceMappingURL=includes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"includes.js","sourceRoot":"","sources":["../../src/expectations/includes.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"includes.js","sourceRoot":"","sources":["../../src/expectations/includes.ts"],"names":[],"mappings":";;;AAAA,4CAAgD;AAEhD;;;;;;;;;;;;;;;;;;GAkBG;AACU,QAAA,QAAQ,GAAG,kBAAW,CAAC,MAAM,CACtC,UAAU,EAAE,SAAS,EACrB,CAAC,MAAc,EAAE,QAAgB,EAAE,EAAE,CACjC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAChC,CAAC"}
|
|
@@ -7,6 +7,7 @@ export * from './equals';
|
|
|
7
7
|
export * from './includes';
|
|
8
8
|
export * from './isAfter';
|
|
9
9
|
export * from './isBefore';
|
|
10
|
+
export * from './isCloseTo';
|
|
10
11
|
export * from './isFalse';
|
|
11
12
|
export * from './isGreaterThan';
|
|
12
13
|
export * from './isLessThan';
|
|
@@ -15,4 +16,6 @@ export * from './isTrue';
|
|
|
15
16
|
export * from './matches';
|
|
16
17
|
export * from './not';
|
|
17
18
|
export * from './or';
|
|
19
|
+
export * from './property';
|
|
18
20
|
export * from './startsWith';
|
|
21
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/expectations/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,OAAO,CAAC;AACtB,cAAc,MAAM,CAAC;AACrB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC"}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -19,6 +23,7 @@ __exportStar(require("./equals"), exports);
|
|
|
19
23
|
__exportStar(require("./includes"), exports);
|
|
20
24
|
__exportStar(require("./isAfter"), exports);
|
|
21
25
|
__exportStar(require("./isBefore"), exports);
|
|
26
|
+
__exportStar(require("./isCloseTo"), exports);
|
|
22
27
|
__exportStar(require("./isFalse"), exports);
|
|
23
28
|
__exportStar(require("./isGreaterThan"), exports);
|
|
24
29
|
__exportStar(require("./isLessThan"), exports);
|
|
@@ -27,5 +32,6 @@ __exportStar(require("./isTrue"), exports);
|
|
|
27
32
|
__exportStar(require("./matches"), exports);
|
|
28
33
|
__exportStar(require("./not"), exports);
|
|
29
34
|
__exportStar(require("./or"), exports);
|
|
35
|
+
__exportStar(require("./property"), exports);
|
|
30
36
|
__exportStar(require("./startsWith"), exports);
|
|
31
37
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/expectations/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/expectations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,4CAA0B;AAC1B,8DAA4C;AAC5C,8DAA4C;AAC5C,6CAA2B;AAC3B,2CAAyB;AACzB,6CAA2B;AAC3B,4CAA0B;AAC1B,6CAA2B;AAC3B,8CAA4B;AAC5B,4CAA0B;AAC1B,kDAAgC;AAChC,+CAA6B;AAC7B,8CAA4B;AAC5B,2CAAyB;AACzB,4CAA0B;AAC1B,wCAAsB;AACtB,uCAAqB;AACrB,6CAA2B;AAC3B,+CAA6B"}
|
|
@@ -1,2 +1,42 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Expectation } from '@serenity-js/core';
|
|
2
|
+
/**
|
|
3
|
+
* Creates an {@apilink Expectation|expectation} that is met when the actual value of type `Date`
|
|
4
|
+
* is after the expected `Date`.
|
|
5
|
+
*
|
|
6
|
+
* ## Ensuring that a given date is after the expected date
|
|
7
|
+
*
|
|
8
|
+
* ```ts
|
|
9
|
+
* import { actorCalled } from '@serenity-js/core'
|
|
10
|
+
* import { Ensure, isAfter } from '@serenity-js/assertions'
|
|
11
|
+
*
|
|
12
|
+
* await actorCalled('Ester').attemptsTo(
|
|
13
|
+
* Ensure.that(new Date('2022-01-01'), isAfter(new Date('1995-01-01'))),
|
|
14
|
+
* )
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* ## Ensuring that a given date is within the expected date range
|
|
18
|
+
*
|
|
19
|
+
* ```ts
|
|
20
|
+
* import { actorCalled, Expectation, d } from '@serenity-js/core'
|
|
21
|
+
* import { Ensure, and, isAfter, isBefore } from '@serenity-js/assertions'
|
|
22
|
+
*
|
|
23
|
+
* const isWithinDateRange = (lowerBound: Answerable<Date>, upperBound: Answerable<Date>) =>
|
|
24
|
+
* Expectation.to(d`have value that is between ${ lowerBound } and ${ upperBound }`)
|
|
25
|
+
* .soThatActual(
|
|
26
|
+
* and(isAfter(lowerBound), isBefore(upperBound))
|
|
27
|
+
* ),
|
|
28
|
+
*
|
|
29
|
+
* await actorCalled('Ester').attemptsTo(
|
|
30
|
+
* Ensure.that(
|
|
31
|
+
* new Date('2022-01-01'),
|
|
32
|
+
* isWithinDateRange(new Date('1995-01-01'), new Date('2025-01-01'))
|
|
33
|
+
* ),
|
|
34
|
+
* )
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* @param expected
|
|
38
|
+
*
|
|
39
|
+
* @group Expectations
|
|
40
|
+
*/
|
|
41
|
+
export declare const isAfter: (expected: import("@serenity-js/core").Answerable<Date>) => Expectation<Date>;
|
|
42
|
+
//# sourceMappingURL=isAfter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isAfter.d.ts","sourceRoot":"","sources":["../../src/expectations/isAfter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,eAAO,MAAM,OAAO,+EAInB,CAAC"}
|
|
@@ -2,9 +2,44 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isAfter = void 0;
|
|
4
4
|
const core_1 = require("@serenity-js/core");
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Creates an {@apilink Expectation|expectation} that is met when the actual value of type `Date`
|
|
7
|
+
* is after the expected `Date`.
|
|
8
|
+
*
|
|
9
|
+
* ## Ensuring that a given date is after the expected date
|
|
10
|
+
*
|
|
11
|
+
* ```ts
|
|
12
|
+
* import { actorCalled } from '@serenity-js/core'
|
|
13
|
+
* import { Ensure, isAfter } from '@serenity-js/assertions'
|
|
14
|
+
*
|
|
15
|
+
* await actorCalled('Ester').attemptsTo(
|
|
16
|
+
* Ensure.that(new Date('2022-01-01'), isAfter(new Date('1995-01-01'))),
|
|
17
|
+
* )
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* ## Ensuring that a given date is within the expected date range
|
|
21
|
+
*
|
|
22
|
+
* ```ts
|
|
23
|
+
* import { actorCalled, Expectation, d } from '@serenity-js/core'
|
|
24
|
+
* import { Ensure, and, isAfter, isBefore } from '@serenity-js/assertions'
|
|
25
|
+
*
|
|
26
|
+
* const isWithinDateRange = (lowerBound: Answerable<Date>, upperBound: Answerable<Date>) =>
|
|
27
|
+
* Expectation.to(d`have value that is between ${ lowerBound } and ${ upperBound }`)
|
|
28
|
+
* .soThatActual(
|
|
29
|
+
* and(isAfter(lowerBound), isBefore(upperBound))
|
|
30
|
+
* ),
|
|
31
|
+
*
|
|
32
|
+
* await actorCalled('Ester').attemptsTo(
|
|
33
|
+
* Ensure.that(
|
|
34
|
+
* new Date('2022-01-01'),
|
|
35
|
+
* isWithinDateRange(new Date('1995-01-01'), new Date('2025-01-01'))
|
|
36
|
+
* ),
|
|
37
|
+
* )
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
40
|
+
* @param expected
|
|
41
|
+
*
|
|
42
|
+
* @group Expectations
|
|
43
|
+
*/
|
|
44
|
+
exports.isAfter = core_1.Expectation.define('isAfter', 'have value that is after', (actual, expected) => actual.getTime() > expected.getTime());
|
|
10
45
|
//# sourceMappingURL=isAfter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isAfter.js","sourceRoot":"","sources":["../../src/expectations/isAfter.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"isAfter.js","sourceRoot":"","sources":["../../src/expectations/isAfter.ts"],"names":[],"mappings":";;;AAAA,4CAAgD;AAEhD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACU,QAAA,OAAO,GAAG,kBAAW,CAAC,MAAM,CACrC,SAAS,EAAE,0BAA0B,EACrC,CAAC,MAAY,EAAE,QAAc,EAAE,EAAE,CAC7B,MAAM,CAAC,OAAO,EAAE,GAAG,QAAQ,CAAC,OAAO,EAAE,CAC5C,CAAC"}
|
|
@@ -1,2 +1,42 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Expectation } from '@serenity-js/core';
|
|
2
|
+
/**
|
|
3
|
+
* Creates an {@apilink Expectation|expectation} that is met when the actual value of type `Date`
|
|
4
|
+
* is before the expected `Date`.
|
|
5
|
+
*
|
|
6
|
+
* ## Ensuring that a given date is after the expected date
|
|
7
|
+
*
|
|
8
|
+
* ```ts
|
|
9
|
+
* import { actorCalled } from '@serenity-js/core'
|
|
10
|
+
* import { Ensure, isBefore } from '@serenity-js/assertions'
|
|
11
|
+
*
|
|
12
|
+
* await actorCalled('Ester').attemptsTo(
|
|
13
|
+
* Ensure.that(new Date('1995-01-01'), isBefore(new Date('2022-01-01'))),
|
|
14
|
+
* )
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* ## Ensuring that a given date is within the expected date range
|
|
18
|
+
*
|
|
19
|
+
* ```ts
|
|
20
|
+
* import { actorCalled, Expectation, d } from '@serenity-js/core'
|
|
21
|
+
* import { Ensure, and, isAfter, isBefore } from '@serenity-js/assertions'
|
|
22
|
+
*
|
|
23
|
+
* const isWithinDateRange = (lowerBound: Answerable<Date>, upperBound: Answerable<Date>) =>
|
|
24
|
+
* Expectation.to(d`have value that is between ${ lowerBound } and ${ upperBound }`)
|
|
25
|
+
* .soThatActual(
|
|
26
|
+
* and(isAfter(lowerBound), isBefore(upperBound))
|
|
27
|
+
* ),
|
|
28
|
+
*
|
|
29
|
+
* await actorCalled('Ester').attemptsTo(
|
|
30
|
+
* Ensure.that(
|
|
31
|
+
* new Date('2022-01-01'),
|
|
32
|
+
* isWithinDateRange(new Date('1995-01-01'), new Date('2025-01-01'))
|
|
33
|
+
* ),
|
|
34
|
+
* )
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* @param expected
|
|
38
|
+
*
|
|
39
|
+
* @group Expectations
|
|
40
|
+
*/
|
|
41
|
+
export declare const isBefore: (expected: import("@serenity-js/core").Answerable<Date>) => Expectation<Date>;
|
|
42
|
+
//# sourceMappingURL=isBefore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isBefore.d.ts","sourceRoot":"","sources":["../../src/expectations/isBefore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,eAAO,MAAM,QAAQ,+EAIpB,CAAC"}
|
|
@@ -2,9 +2,44 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isBefore = void 0;
|
|
4
4
|
const core_1 = require("@serenity-js/core");
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Creates an {@apilink Expectation|expectation} that is met when the actual value of type `Date`
|
|
7
|
+
* is before the expected `Date`.
|
|
8
|
+
*
|
|
9
|
+
* ## Ensuring that a given date is after the expected date
|
|
10
|
+
*
|
|
11
|
+
* ```ts
|
|
12
|
+
* import { actorCalled } from '@serenity-js/core'
|
|
13
|
+
* import { Ensure, isBefore } from '@serenity-js/assertions'
|
|
14
|
+
*
|
|
15
|
+
* await actorCalled('Ester').attemptsTo(
|
|
16
|
+
* Ensure.that(new Date('1995-01-01'), isBefore(new Date('2022-01-01'))),
|
|
17
|
+
* )
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* ## Ensuring that a given date is within the expected date range
|
|
21
|
+
*
|
|
22
|
+
* ```ts
|
|
23
|
+
* import { actorCalled, Expectation, d } from '@serenity-js/core'
|
|
24
|
+
* import { Ensure, and, isAfter, isBefore } from '@serenity-js/assertions'
|
|
25
|
+
*
|
|
26
|
+
* const isWithinDateRange = (lowerBound: Answerable<Date>, upperBound: Answerable<Date>) =>
|
|
27
|
+
* Expectation.to(d`have value that is between ${ lowerBound } and ${ upperBound }`)
|
|
28
|
+
* .soThatActual(
|
|
29
|
+
* and(isAfter(lowerBound), isBefore(upperBound))
|
|
30
|
+
* ),
|
|
31
|
+
*
|
|
32
|
+
* await actorCalled('Ester').attemptsTo(
|
|
33
|
+
* Ensure.that(
|
|
34
|
+
* new Date('2022-01-01'),
|
|
35
|
+
* isWithinDateRange(new Date('1995-01-01'), new Date('2025-01-01'))
|
|
36
|
+
* ),
|
|
37
|
+
* )
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
40
|
+
* @param expected
|
|
41
|
+
*
|
|
42
|
+
* @group Expectations
|
|
43
|
+
*/
|
|
44
|
+
exports.isBefore = core_1.Expectation.define('isBefore', 'have value that is before', (actual, expected) => actual.getTime() < expected.getTime());
|
|
10
45
|
//# sourceMappingURL=isBefore.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isBefore.js","sourceRoot":"","sources":["../../src/expectations/isBefore.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"isBefore.js","sourceRoot":"","sources":["../../src/expectations/isBefore.ts"],"names":[],"mappings":";;;AAAA,4CAAgD;AAEhD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACU,QAAA,QAAQ,GAAG,kBAAW,CAAC,MAAM,CACtC,UAAU,EAAE,2BAA2B,EACvC,CAAC,MAAY,EAAE,QAAc,EAAE,EAAE,CAC7B,MAAM,CAAC,OAAO,EAAE,GAAG,QAAQ,CAAC,OAAO,EAAE,CAC5C,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Expectation } from '@serenity-js/core';
|
|
2
|
+
/**
|
|
3
|
+
* Produces an {@apilink Expectation|expectation} that is met when the actual value
|
|
4
|
+
* is within a given ± `absoluteTolerance` range of the `expected` value.
|
|
5
|
+
*
|
|
6
|
+
* ## Ensuring that a given floating point number is close to the expected number
|
|
7
|
+
*
|
|
8
|
+
* ```ts
|
|
9
|
+
* import { actorCalled } from '@serenity-js/core'
|
|
10
|
+
* import { Ensure, isCloseTo } from '@serenity-js/assertions'
|
|
11
|
+
*
|
|
12
|
+
* await actorCalled('Iris').attemptsTo(
|
|
13
|
+
* Ensure.that(10.123, isCloseTo(10, 0.2))
|
|
14
|
+
* )
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* @param expected
|
|
18
|
+
* @param [absoluteTolerance=1e-9]
|
|
19
|
+
* Absolute ± tolerance range, defaults to `1e-9`
|
|
20
|
+
*
|
|
21
|
+
* @group Expectations
|
|
22
|
+
*/
|
|
23
|
+
export declare const isCloseTo: (...answerableArguments: unknown[]) => Expectation<number>;
|
|
24
|
+
//# sourceMappingURL=isCloseTo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isCloseTo.d.ts","sourceRoot":"","sources":["../../src/expectations/isCloseTo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,SAAS,4DAgBrB,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isCloseTo = void 0;
|
|
4
|
+
const core_1 = require("@serenity-js/core");
|
|
5
|
+
/**
|
|
6
|
+
* Produces an {@apilink Expectation|expectation} that is met when the actual value
|
|
7
|
+
* is within a given ± `absoluteTolerance` range of the `expected` value.
|
|
8
|
+
*
|
|
9
|
+
* ## Ensuring that a given floating point number is close to the expected number
|
|
10
|
+
*
|
|
11
|
+
* ```ts
|
|
12
|
+
* import { actorCalled } from '@serenity-js/core'
|
|
13
|
+
* import { Ensure, isCloseTo } from '@serenity-js/assertions'
|
|
14
|
+
*
|
|
15
|
+
* await actorCalled('Iris').attemptsTo(
|
|
16
|
+
* Ensure.that(10.123, isCloseTo(10, 0.2))
|
|
17
|
+
* )
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* @param expected
|
|
21
|
+
* @param [absoluteTolerance=1e-9]
|
|
22
|
+
* Absolute ± tolerance range, defaults to `1e-9`
|
|
23
|
+
*
|
|
24
|
+
* @group Expectations
|
|
25
|
+
*/
|
|
26
|
+
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) => {
|
|
27
|
+
// short-circuit exact equality
|
|
28
|
+
if (actual === expected) {
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
if (!(Number.isFinite(actual) && Number.isFinite(expected))) {
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
const difference = Math.abs(actual - expected);
|
|
35
|
+
return difference <= absoluteTolerance;
|
|
36
|
+
});
|
|
37
|
+
//# sourceMappingURL=isCloseTo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isCloseTo.js","sourceRoot":"","sources":["../../src/expectations/isCloseTo.ts"],"names":[],"mappings":";;;AAAA,4CAAmD;AAEnD;;;;;;;;;;;;;;;;;;;;GAoBG;AACU,QAAA,SAAS,GAAG,kBAAW,CAAC,MAAM,CACvC,WAAW,EAAE,CAAC,QAAQ,EAAE,iBAAiB,GAAG,IAAI,EAAE,EAAE,CAAC,IAAA,QAAC,EAAA,uBAAwB,QAAS,KAAM,iBAAkB,EAAE,EACjH,CAAC,MAAc,EAAE,QAAgB,EAAE,iBAAiB,GAAG,IAAI,EAAE,EAAE;IAC3D,+BAA+B;IAC/B,IAAI,MAAM,KAAK,QAAQ,EAAE;QACrB,OAAO,IAAI,CAAC;KACf;IAED,IAAI,CAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,EAAE;QAC1D,OAAO,KAAK,CAAC;KAChB;IAED,MAAM,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,GAAG,QAAQ,CAAC,CAAA;IAE9C,OAAO,UAAU,IAAI,iBAAiB,CAAC;AAC3C,CAAC,CACJ,CAAA"}
|
|
@@ -1,2 +1,21 @@
|
|
|
1
1
|
import { Expectation } from '@serenity-js/core';
|
|
2
|
+
/**
|
|
3
|
+
* Creates an {@apilink Expectation|expectation} that is met when the actual `boolean` value
|
|
4
|
+
* is `false`.
|
|
5
|
+
*
|
|
6
|
+
* ## Ensuring that a given value is false
|
|
7
|
+
*
|
|
8
|
+
* ```ts
|
|
9
|
+
* import { actorCalled } from '@serenity-js/core'
|
|
10
|
+
* import { Ensure, isFalse } from '@serenity-js/assertions'
|
|
11
|
+
* import { Cookie } from '@serenity-js/web'
|
|
12
|
+
*
|
|
13
|
+
* await actorCalled('Ester').attemptsTo(
|
|
14
|
+
* Ensure.that(Cookie.called('example-regular-cookie').isSecure(), isFalse()),
|
|
15
|
+
* )
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* @group Expectations
|
|
19
|
+
*/
|
|
2
20
|
export declare function isFalse(): Expectation<boolean>;
|
|
21
|
+
//# sourceMappingURL=isFalse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isFalse.d.ts","sourceRoot":"","sources":["../../src/expectations/isFalse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAIhD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,OAAO,IAAI,WAAW,CAAC,OAAO,CAAC,CAE9C"}
|
|
@@ -3,6 +3,24 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.isFalse = void 0;
|
|
4
4
|
const core_1 = require("@serenity-js/core");
|
|
5
5
|
const equals_1 = require("./equals");
|
|
6
|
+
/**
|
|
7
|
+
* Creates an {@apilink Expectation|expectation} that is met when the actual `boolean` value
|
|
8
|
+
* is `false`.
|
|
9
|
+
*
|
|
10
|
+
* ## Ensuring that a given value is false
|
|
11
|
+
*
|
|
12
|
+
* ```ts
|
|
13
|
+
* import { actorCalled } from '@serenity-js/core'
|
|
14
|
+
* import { Ensure, isFalse } from '@serenity-js/assertions'
|
|
15
|
+
* import { Cookie } from '@serenity-js/web'
|
|
16
|
+
*
|
|
17
|
+
* await actorCalled('Ester').attemptsTo(
|
|
18
|
+
* Ensure.that(Cookie.called('example-regular-cookie').isSecure(), isFalse()),
|
|
19
|
+
* )
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @group Expectations
|
|
23
|
+
*/
|
|
6
24
|
function isFalse() {
|
|
7
25
|
return core_1.Expectation.to(`equal false`).soThatActual((0, equals_1.equals)(false));
|
|
8
26
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isFalse.js","sourceRoot":"","sources":["../../src/expectations/isFalse.ts"],"names":[],"mappings":";;;AAAA,4CAAgD;AAEhD,qCAAkC;AAElC,SAAgB,OAAO;IACnB,OAAO,kBAAW,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"isFalse.js","sourceRoot":"","sources":["../../src/expectations/isFalse.ts"],"names":[],"mappings":";;;AAAA,4CAAgD;AAEhD,qCAAkC;AAElC;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,OAAO;IACnB,OAAO,kBAAW,CAAC,EAAE,CAAU,aAAa,CAAC,CAAC,YAAY,CAAC,IAAA,eAAM,EAAC,KAAK,CAAC,CAAC,CAAC;AAC9E,CAAC;AAFD,0BAEC"}
|
|
@@ -1,2 +1,45 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Expectation } from '@serenity-js/core';
|
|
2
|
+
/**
|
|
3
|
+
* Creates an {@apilink Expectation|expectation} that is met when the actual value of type `number`
|
|
4
|
+
* is greater than the expected `number`.
|
|
5
|
+
*
|
|
6
|
+
* ## Ensuring that a given number is greater than the expected number
|
|
7
|
+
*
|
|
8
|
+
* ```ts
|
|
9
|
+
* import { actorCalled } from '@serenity-js/core'
|
|
10
|
+
* import { Ensure, isGreaterThan } from '@serenity-js/assertions'
|
|
11
|
+
*
|
|
12
|
+
* await actorCalled('Ester').attemptsTo(
|
|
13
|
+
* Ensure.that(10, isGreaterThan(5)),
|
|
14
|
+
* )
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* ## Ensuring that a given number is within the expected range
|
|
18
|
+
*
|
|
19
|
+
* ```ts
|
|
20
|
+
* import { actorCalled, Expectation, d } from '@serenity-js/core'
|
|
21
|
+
* import { Ensure, and, equals, isGreaterThan, isLessThan, or } from '@serenity-js/assertions'
|
|
22
|
+
*
|
|
23
|
+
* const isWithinRange = (lowerBound: Answerable<number>, upperBound: Answerable<number>) =>
|
|
24
|
+
* Expectation.to(d`have value that is between ${ lowerBound } and ${ upperBound }`)
|
|
25
|
+
* .soThatActual(
|
|
26
|
+
* and(
|
|
27
|
+
* or(equals(lowerBound), isGreaterThan(lowerBound)),
|
|
28
|
+
* or(equals(upperBound), isLessThan(upperBound)),
|
|
29
|
+
* )
|
|
30
|
+
* ),
|
|
31
|
+
*
|
|
32
|
+
* await actorCalled('Ester').attemptsTo(
|
|
33
|
+
* Ensure.that(
|
|
34
|
+
* 7,
|
|
35
|
+
* isWithinRange(5, 10)
|
|
36
|
+
* ),
|
|
37
|
+
* )
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
40
|
+
* @param expected
|
|
41
|
+
*
|
|
42
|
+
* @group Expectations
|
|
43
|
+
*/
|
|
44
|
+
export declare const isGreaterThan: (expected: import("@serenity-js/core").Answerable<number>) => Expectation<number>;
|
|
45
|
+
//# sourceMappingURL=isGreaterThan.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isGreaterThan.d.ts","sourceRoot":"","sources":["../../src/expectations/isGreaterThan.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,eAAO,MAAM,aAAa,mFAIzB,CAAA"}
|