ava 1.4.0 → 1.4.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/index.d.ts +11 -0
- package/index.js.flow +11 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -29,6 +29,9 @@ export type SnapshotOptions = {
|
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
export interface Assertions {
|
|
32
|
+
/** Assert that `actual` is [truthy](https://developer.mozilla.org/en-US/docs/Glossary/Truthy). Comes with power-assert. */
|
|
33
|
+
assert: AssertAssertion;
|
|
34
|
+
|
|
32
35
|
/** Assert that `actual` is [deeply equal](https://github.com/concordancejs/concordance#comparison-details) to `expected`. */
|
|
33
36
|
deepEqual: DeepEqualAssertion;
|
|
34
37
|
|
|
@@ -96,6 +99,14 @@ export interface Assertions {
|
|
|
96
99
|
truthy: TruthyAssertion;
|
|
97
100
|
}
|
|
98
101
|
|
|
102
|
+
export interface AssertAssertion {
|
|
103
|
+
/** Assert that `actual` is [truthy](https://developer.mozilla.org/en-US/docs/Glossary/Truthy). Comes with power-assert. */
|
|
104
|
+
(actual: any, message?: string): void;
|
|
105
|
+
|
|
106
|
+
/** Skip this assertion. */
|
|
107
|
+
skip(actual: any, message?: string): void;
|
|
108
|
+
}
|
|
109
|
+
|
|
99
110
|
export interface DeepEqualAssertion {
|
|
100
111
|
/** Assert that `actual` is [deeply equal](https://github.com/concordancejs/concordance#comparison-details) to `expected`. */
|
|
101
112
|
<ValueType = any>(actual: ValueType, expected: ValueType, message?: string): void;
|
package/index.js.flow
CHANGED
|
@@ -42,6 +42,9 @@ export type SnapshotOptions = {
|
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
export interface Assertions {
|
|
45
|
+
/** Assert that `actual` is [truthy](https://developer.mozilla.org/en-US/docs/Glossary/Truthy). Comes with power-assert. */
|
|
46
|
+
assert: AssertAssertion;
|
|
47
|
+
|
|
45
48
|
/** Assert that `actual` is [deeply equal](https://github.com/concordancejs/concordance#comparison-details) to `expected`. */
|
|
46
49
|
deepEqual: DeepEqualAssertion;
|
|
47
50
|
|
|
@@ -109,6 +112,14 @@ export interface Assertions {
|
|
|
109
112
|
truthy: TruthyAssertion;
|
|
110
113
|
}
|
|
111
114
|
|
|
115
|
+
export interface AssertAssertion {
|
|
116
|
+
/** Assert that `actual` is [truthy](https://developer.mozilla.org/en-US/docs/Glossary/Truthy). Comes with power-assert. */
|
|
117
|
+
(actual: any, message?: string): void;
|
|
118
|
+
|
|
119
|
+
/** Skip this assertion. */
|
|
120
|
+
skip(actual: any, message?: string): void;
|
|
121
|
+
}
|
|
122
|
+
|
|
112
123
|
export interface DeepEqualAssertion {
|
|
113
124
|
/** Assert that `actual` is [deeply equal](https://github.com/concordancejs/concordance#comparison-details) to `expected`. */
|
|
114
125
|
(actual: any, expected: any, message?: string): void;
|