This repository has been archived by the owner on Mar 19, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #65 from dequelabs/modernize-project
Modernize project
- Loading branch information
Showing
18 changed files
with
6,033 additions
and
2,316 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,5 @@ node_modules | |
output | ||
*.tgz | ||
npm-shrinkwrap.json | ||
.nyc_output/ | ||
coverage/ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,19 @@ | ||
machine: | ||
node: | ||
version: v6.1.0 | ||
dependencies: | ||
pre: | ||
- npm i selenium-webdriver@2.53.1 | ||
version: 2 | ||
|
||
jobs: | ||
build: | ||
docker: | ||
- image: circleci/node:6-browsers | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- npm-{{ checksum "package-lock.json" }} | ||
- npm | ||
- run: npm install | ||
- save_cache: | ||
key: npm-{{ checksum "package-lock.json" }} | ||
paths: | ||
- node_modules | ||
- run: npm run lint | ||
- run: npm run test:unit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,29 @@ | ||
|
||
/** | ||
* Normalizes context parameter with includes and excludes | ||
* @private | ||
* @param {Array} include Array of selectors to include | ||
* @param {Array} exclude Array of selectors to exclude | ||
* @return {Object} | ||
*/ | ||
exports = module.exports = function (include, exclude) { | ||
if (!exclude.length) { | ||
if (!include.length) { | ||
return null; | ||
} | ||
exports = module.exports = function(include, exclude) { | ||
if (!exclude.length) { | ||
if (!include.length) { | ||
return null; | ||
} | ||
|
||
return { | ||
include: include | ||
}; | ||
} | ||
return { | ||
include: include | ||
}; | ||
} | ||
|
||
if (!include.length) { | ||
return { | ||
exclude: exclude | ||
}; | ||
} | ||
if (!include.length) { | ||
return { | ||
exclude: exclude | ||
}; | ||
} | ||
|
||
return { | ||
include: include, | ||
exclude: exclude | ||
}; | ||
return { | ||
include: include, | ||
exclude: exclude | ||
}; | ||
}; |
Oops, something went wrong.