Skip to content

Commit

Permalink
chore(docs): remove old and non relevant function usage (puppeteer#2623)
Browse files Browse the repository at this point in the history
  • Loading branch information
yanivefraim authored and aslushnikov committed May 29, 2018
1 parent 5ff67db commit 41ccd0b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,21 +150,21 @@ npm run unit -- -j 4
```js
...
// Using "fit" to run specific test
fit('should work', SX(async function() {
const response = await page.goto(EMPTY_PAGE);
fit('should work', async function({server, page}) {
const response = await page.goto(server.EMPTY_PAGE);
expect(response.ok).toBe(true);
}))
})
```

- To disable a specific test, substitute the `it` with `xit` (mnemonic rule: '*cross it*'):

```js
...
// Using "xit" to skip specific test
xit('should work', SX(async function() {
const response = await page.goto(EMPTY_PAGE);
xit('should work', async function({server, page}) {
const response = await page.goto(server.EMPTY_PAGE);
expect(response.ok).toBe(true);
}))
})
```

- To run tests in non-headless mode:
Expand Down

0 comments on commit 41ccd0b

Please sign in to comment.