cypress-plugin-tab
Advanced tools
Comparing version 1.0.4 to 1.0.5
{ | ||
"name": "cypress-plugin-tab", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "", | ||
@@ -22,3 +22,3 @@ "main": "src", | ||
"@typescript-eslint/parser": "^2.3.0", | ||
"cypress": "^3.4.1", | ||
"cypress": "3.4.1", | ||
"eslint": "^6.4.0", | ||
@@ -25,0 +25,0 @@ "eslint-plugin-cypress": "^2.2.1", |
@@ -78,18 +78,10 @@ const tabSequence = require('ally.js/query/tabsequence') | ||
if (reverse) { | ||
if (i === 0 || i === -1) { | ||
i = seq.length | ||
} | ||
} else { | ||
if (i === seq.length) { | ||
i = 0 | ||
} | ||
const nextIndex = i <= 0 ? seq.length - 1 : i - 1 | ||
return seq[nextIndex] | ||
} | ||
// } | ||
if (reverse) { | ||
return seq[i - 1] | ||
} | ||
const nextIndex = i === seq.length - 1 ? 0 : i + 1 | ||
return seq[i + 1] | ||
return seq[nextIndex] | ||
} | ||
@@ -96,0 +88,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7224
117