hamjest 3.7.3 → 4.0.1
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/.eslintrc +15 -11
- package/dist/hamjest.js +6542 -23401
- package/dist/hamjest.min.js +1 -1
- package/gulpfile.js +0 -2
- package/index.js +95 -1
- package/lib/Description.js +32 -22
- package/lib/assertThat.js +4 -4
- package/lib/matchers/AllOf.js +8 -5
- package/lib/matchers/AnyOf.js +8 -8
- package/lib/matchers/DateComparisonMatcher.js +25 -24
- package/lib/matchers/Every.js +17 -11
- package/lib/matchers/FeatureMatcher.js +2 -2
- package/lib/matchers/Is.js +6 -5
- package/lib/matchers/IsAnything.js +2 -2
- package/lib/matchers/IsArray.js +4 -3
- package/lib/matchers/IsArrayContaining.js +8 -6
- package/lib/matchers/IsArrayContainingInAnyOrder.js +11 -8
- package/lib/matchers/IsArrayOrderedBy.js +5 -4
- package/lib/matchers/IsArrayWithItem.js +11 -8
- package/lib/matchers/IsArrayWithItems.js +6 -4
- package/lib/matchers/IsBoolean.js +4 -3
- package/lib/matchers/IsCloseTo.js +2 -2
- package/lib/matchers/IsDate.js +4 -3
- package/lib/matchers/IsDefined.js +4 -3
- package/lib/matchers/IsEqual.js +4 -3
- package/lib/matchers/IsFulfilled.js +2 -2
- package/lib/matchers/IsFunction.js +4 -3
- package/lib/matchers/IsFunctionThrowing.js +2 -2
- package/lib/matchers/IsInstanceOf.js +4 -3
- package/lib/matchers/IsNot.js +6 -5
- package/lib/matchers/IsNumber.js +4 -3
- package/lib/matchers/IsObject.js +4 -3
- package/lib/matchers/IsObjectWithProperties.js +19 -12
- package/lib/matchers/IsPromise.js +4 -3
- package/lib/matchers/IsRegExp.js +5 -6
- package/lib/matchers/IsRejected.js +2 -2
- package/lib/matchers/IsSame.js +2 -2
- package/lib/matchers/IsString.js +4 -3
- package/lib/matchers/IsStringMatching.js +2 -2
- package/lib/matchers/Matcher.js +10 -7
- package/lib/matchers/NumberComparisonMatcher.js +17 -16
- package/lib/matchers/SubstringMatcher.js +42 -39
- package/lib/matchers/failsToMatch.js +2 -2
- package/lib/matchers/falsy.js +2 -2
- package/lib/matchers/hasDescription.js +6 -5
- package/lib/matchers/hasExactlyOneItem.js +11 -8
- package/lib/matchers/hasSize.js +7 -4
- package/lib/matchers/inRange.js +11 -8
- package/lib/matchers/isEmpty.js +2 -2
- package/lib/matchers/matches.js +2 -2
- package/lib/matchers/promiseAgnostic.js +35 -15
- package/lib/matchers/returns.js +2 -2
- package/lib/matchers/truthy.js +2 -2
- package/lib/promiseThat.js +7 -9
- package/package.json +4 -5
- package/test/node/assertThatSpec.js +1 -3
- package/test/node/deferMatcher.js +2 -4
- package/test/node/esm/.eslintrc +5 -0
- package/test/node/esm/package.json +3 -0
- package/test/node/esm/providesNamedImports.js +3 -0
- package/test/node/matchers/AllOfSpec.js +1 -1
- package/test/node/matchers/AnyOfSpec.js +1 -1
- package/test/node/matchers/IsFulfilledSpec.js +29 -30
- package/test/node/matchers/IsPromiseSpec.js +3 -4
- package/test/node/matchers/IsRejectedSpec.js +21 -22
- package/test/node/promiseThatSpec.js +49 -86
- package/lib/hamjest.js +0 -106
- package/tags +0 -2855
package/.eslintrc
CHANGED
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
{
|
|
2
|
-
root: true,
|
|
3
|
-
extends:
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
"root": true,
|
|
3
|
+
"extends": "leanbyte",
|
|
4
|
+
"parserOptions": {
|
|
5
|
+
"ecmaVersion": 9,
|
|
6
|
+
"sourceType": "script"
|
|
7
|
+
},
|
|
8
|
+
"rules": {
|
|
9
|
+
"no-extend-native": 0
|
|
6
10
|
},
|
|
7
|
-
overrides: [
|
|
11
|
+
"overrides": [
|
|
8
12
|
{
|
|
9
|
-
files: [
|
|
10
|
-
parser:
|
|
11
|
-
extends: [
|
|
12
|
-
|
|
13
|
+
"files": ["*.ts"],
|
|
14
|
+
"parser": "@typescript-eslint/parser",
|
|
15
|
+
"extends": [
|
|
16
|
+
"plugin:@typescript-eslint/recommended"
|
|
13
17
|
],
|
|
14
|
-
rules: {
|
|
18
|
+
"rules": {
|
|
15
19
|
}
|
|
16
|
-
}
|
|
20
|
+
}
|
|
17
21
|
]
|
|
18
22
|
}
|