This repository was archived by the owner on May 29, 2019. It is now read-only.
Commit d5a0cc8
Miroslav Bajtoš
helpers: Improve ACL asserts
Modify `_it.shouldBeAllowed` to include the actual status code
in the assertion error.
Modify `_it.shouldBeDenied` to assert the exact value of the status
code. Expect the status code configured via `app.get('aclErrorStatus')`,
add a parameter allowing callers to override this value.1 parent 25be2d7 commit d5a0cc8
1 file changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
215 | | - | |
216 | | - | |
| 214 | + | |
| 215 | + | |
217 | 216 | | |
218 | 217 | | |
219 | 218 | | |
220 | 219 | | |
221 | 220 | | |
222 | 221 | | |
223 | | - | |
224 | | - | |
225 | | - | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| |||
0 commit comments