Skip to content

Commit

Permalink
[docs] fix broken link (#2411)
Browse files Browse the repository at this point in the history
* fix broken link

* link to optionsallowunawaitedpromise

* broken link
  • Loading branch information
MargaritaLoseva authored May 15, 2018
1 parent 95e667b commit 292f544
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ To include testing metadata to reports, use the [custom reporter methods](https:

TestCafe now throws an error if you pass a regular promise to the assertion's `expect` method.

If you need to assert a regular promise, set the [allowUnawaitedPromise](docs/articles/documentation/test-api/assertions/README.html#allowunawaitedpromise) option to `true`.
If you need to assert a regular promise, set the [allowUnawaitedPromise](docs/articles/documentation/test-api/assertions/README.html#optionsallowunawaitedpromise) option to `true`.

```js
await t.expect(doSomethingAsync()).ok('check that a promise is returned', { allowUnawaitedPromise: true });
Expand Down
4 changes: 2 additions & 2 deletions docs/articles/blog/2018-05-15-testcafe-v0-20-0-released.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Intercepting HTTP requests, specifying resources accessed by bypassing a proxy s

TestCafe now allows you to record HTTP request data or mock responses. You can also create a custom HTTP request hook to emulate authentications like **Kerberos** or **Client Certificate Authentication**.

See [Intercepting HTTP Requests](docs/articles/documentation/test-api/intercepting-and-mocking-http-requests/README.html) for more information.
See [Intercepting HTTP Requests](docs/articles/documentation/test-api/intercepting-http-requests/README.html) for more information.

## Enhancements

Expand Down Expand Up @@ -56,7 +56,7 @@ To include testing metadata to reports, use the [custom reporter methods](https:

TestCafe now throws an error if you pass a regular promise to the assertion's `expect` method.

If you need to assert a regular promise, set the [allowUnawaitedPromise](docs/articles/documentation/test-api/assertions/README.html#allowunawaitedpromise) option to `true`.
If you need to assert a regular promise, set the [allowUnawaitedPromise](docs/articles/documentation/test-api/assertions/#optionsallowunawaitedpromise) option to `true`.

```js
await t.expect(doSomethingAsync()).ok('check that a promise is returned', { allowUnawaitedPromise: true });
Expand Down

0 comments on commit 292f544

Please sign in to comment.