From 41ccd0bded807059864a1b67a2b1f363f03722ad Mon Sep 17 00:00:00 2001 From: Yaniv Efraim Date: Wed, 30 May 2018 01:25:20 +0300 Subject: [PATCH] chore(docs): remove old and non relevant function usage (#2623) --- CONTRIBUTING.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 2d1b96302dc..925ad2e970a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -150,10 +150,10 @@ 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*'): @@ -161,10 +161,10 @@ npm run unit -- -j 4 ```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: