Skip to content

Commit

Permalink
Add two closing parenthesis on runOn ignoreOn (cypress-io#2589)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariotsi authored Mar 9, 2020
1 parent 567595d commit ce0c871
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/guides/guides/cross-browser-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,13 +195,13 @@ In the example below we've implemented two helper functions that utilize {% url

```js
const runOn = (browser, fn) => {
if (Cypress.isBrowser(browser) {
if (Cypress.isBrowser(browser)) {
fn()
}
}
const ignoreOn = (browser, fn) => {
if (!Cypress.isBrowser(browser) {
if (!Cypress.isBrowser(browser)) {
fn()
}
}
Expand Down

0 comments on commit ce0c871

Please sign in to comment.