1 | declare namespace Chai {
|
2 | interface Assertion {
|
3 | successful: RenderAssertion
|
4 | serverError: RenderAssertion
|
5 | redirect: RedirectAssertion
|
6 | cookie (cookieName: string, cookieValue: string): Assertion
|
7 | }
|
8 | interface RenderAssertion {
|
9 | withText (...text: string[]): Assertion
|
10 | }
|
11 | interface RedirectAssertion {
|
12 | toLocation (location: string | RegExp): Assertion
|
13 | }
|
14 | }
|