@rcompat/test 0.1.15 → 0.1.16
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/lib/private/Assert.d.ts +1 -0
- package/lib/private/Assert.js +4 -0
- package/package.json +2 -2
package/lib/private/Assert.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export default class Assert<const Actual> {
|
|
|
17
17
|
instance(expected: UnknownFunction): this;
|
|
18
18
|
throws(expected?: string): this;
|
|
19
19
|
tries(): this;
|
|
20
|
+
pass(): void;
|
|
20
21
|
fail<const Expected extends Not<Equals<Actual, Expected>> extends true ? unknown : "was supposed to fail but didn't">(): void;
|
|
21
22
|
fail(reason: string): void;
|
|
22
23
|
}
|
package/lib/private/Assert.js
CHANGED
|
@@ -25,6 +25,7 @@ export default class Assert {
|
|
|
25
25
|
return this;
|
|
26
26
|
}
|
|
27
27
|
type(_expected) {
|
|
28
|
+
this.pass();
|
|
28
29
|
return this;
|
|
29
30
|
}
|
|
30
31
|
nottype(_expected) {
|
|
@@ -76,6 +77,9 @@ export default class Assert {
|
|
|
76
77
|
}
|
|
77
78
|
return this;
|
|
78
79
|
}
|
|
80
|
+
pass() {
|
|
81
|
+
this.#passed();
|
|
82
|
+
}
|
|
79
83
|
fail(reason) {
|
|
80
84
|
if (reason !== undefined) {
|
|
81
85
|
this.#failed(reason);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rcompat/test",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
4
4
|
"description": "Standard library testing",
|
|
5
5
|
"bugs": "https://github.com/rcompat/rcompat/issues",
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"directory": "packages/test"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@rcompat/fs": "^0.12.
|
|
18
|
+
"@rcompat/fs": "^0.12.8"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@rcompat/record": "^0.7.1"
|