You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/03-assertions.md
+23-23Lines changed: 23 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -101,51 +101,51 @@ Passing assertion. Returns a boolean indicating whether the assertion passed.
101
101
102
102
Failing assertion. Returns a boolean indicating whether the assertion passed.
103
103
104
-
### `.assert(value, message?)`
104
+
### `.assert(actual, message?)`
105
105
106
-
Asserts that `value` is truthy. Returns a boolean indicating whether the assertion passed.
106
+
Asserts that `actual` is truthy. Returns a boolean indicating whether the assertion passed.
107
107
108
-
### `.truthy(value, message?)`
108
+
### `.truthy(actual, message?)`
109
109
110
-
Assert that `value` is truthy. Returns a boolean indicating whether the assertion passed.
110
+
Assert that `actual` is truthy. Returns a boolean indicating whether the assertion passed.
111
111
112
-
### `.falsy(value, message?)`
112
+
### `.falsy(actual, message?)`
113
113
114
-
Assert that `value` is falsy. Returns a boolean indicating whether the assertion passed.
114
+
Assert that `actual` is falsy. Returns a boolean indicating whether the assertion passed.
115
115
116
-
### `.true(value, message?)`
116
+
### `.true(actual, message?)`
117
117
118
-
Assert that `value` is `true`. Returns a boolean indicating whether the assertion passed.
118
+
Assert that `actual` is `true`. Returns a boolean indicating whether the assertion passed.
119
119
120
-
### `.false(value, message?)`
120
+
### `.false(actual, message?)`
121
121
122
-
Assert that `value` is `false`. Returns a boolean indicating whether the assertion passed.
122
+
Assert that `actual` is `false`. Returns a boolean indicating whether the assertion passed.
123
123
124
-
### `.is(value, expected, message?)`
124
+
### `.is(actual, expected, message?)`
125
125
126
-
Assert that `value` is the same as `expected`. This is based on [`Object.is()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is). Returns a boolean indicating whether the assertion passed.
126
+
Assert that `actual` is the same as `expected`. This is based on [`Object.is()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is). Returns a boolean indicating whether the assertion passed.
127
127
128
-
### `.not(value, expected, message?)`
128
+
### `.not(actual, expected, message?)`
129
129
130
-
Assert that `value` is not the same as `expected`. This is based on [`Object.is()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is). Returns a boolean indicating whether the assertion passed.
130
+
Assert that `actual` is not the same as `expected`. This is based on [`Object.is()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is). Returns a boolean indicating whether the assertion passed.
131
131
132
-
### `.deepEqual(value, expected, message?)`
132
+
### `.deepEqual(actual, expected, message?)`
133
133
134
-
Assert that `value` is deeply equal to `expected`. See [Concordance](https://github.com/concordancejs/concordance) for details.
134
+
Assert that `actual` is deeply equal to `expected`. See [Concordance](https://github.com/concordancejs/concordance) for details.
135
135
136
-
### `.notDeepEqual(value, expected, message?)`
136
+
### `.notDeepEqual(actual, expected, message?)`
137
137
138
-
Assert that `value` is not deeply equal to `expected`. The inverse of `.deepEqual()`. Returns a boolean indicating whether the assertion passed.
138
+
Assert that `actual` is not deeply equal to `expected`. The inverse of `.deepEqual()`. Returns a boolean indicating whether the assertion passed.
139
139
140
-
### `.like(value, selector, message?)`
140
+
### `.like(actual, selector, message?)`
141
141
142
-
Assert that `value` is like `selector`. This is a variant of `.deepEqual()`, however `selector` does not need to have the same enumerable properties as `value` does.
142
+
Assert that `actual` is like `selector`. This is a variant of `.deepEqual()`, however `selector` does not need to have the same enumerable properties as `actual` does.
143
143
144
-
Instead AVA derives a *comparable* object from `value`, based on the deeply-nested properties of `selector`. This object is then compared to `selector` using `.deepEqual()`.
144
+
Instead AVA derives a *comparable* object from `actual`, based on the deeply-nested properties of `selector`. This object is then compared to `selector` using `.deepEqual()`.
145
145
146
-
Any values in `selector` that are not regular objects should be deeply equal to the corresponding values in `value`.
146
+
Any values in `selector` that are not regular objects should be deeply equal to the corresponding values in `actual`.
147
147
148
-
In the following example, the `map` property of `value` must be deeply equal to that of `selector`. However `nested.qux` is ignored, because it's not in `selector`.
148
+
In the following example, the `map` property of `actual` must be deeply equal to that of `selector`. However `nested.qux` is ignored, because it's not in `selector`.
0 commit comments