Skip to content
This repository was archived by the owner on Jan 31, 2023. It is now read-only.

Commit d82df3d

Browse files
committed
fix: normal module export instead of es6
1 parent b2acc75 commit d82df3d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

index.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const matchesUrlPart = normalizedName => {
3333
/**
3434
* Skips the current test based on the browser, platform or url.
3535
*/
36-
export const skipOn = (name, cb) => {
36+
const skipOn = (name, cb) => {
3737
if (!_.isString(name) || '') {
3838
throw new Error(
3939
'Invalid syntax: cy.skipOn(<name>), for example cy.skipOn("linux")'
@@ -91,7 +91,7 @@ export const skipOn = (name, cb) => {
9191
/**
9292
* Runs the current test only in the specified browser, platform or against url.
9393
*/
94-
export const onlyOn = (name, cb) => {
94+
const onlyOn = (name, cb) => {
9595
if (!_.isString(name) || '') {
9696
throw new Error(
9797
'Invalid syntax: cy.onlyOn(<name>), for example cy.onlyOn("linux")'
@@ -138,3 +138,8 @@ export const onlyOn = (name, cb) => {
138138
Cypress.Commands.add('skipOn', skipOn)
139139

140140
Cypress.Commands.add('onlyOn', onlyOn)
141+
142+
module.exports = {
143+
skipOn,
144+
onlyOn
145+
}

0 commit comments

Comments
 (0)