Skip to content

Commit

Permalink
Bug AOEpeople#4, Change accessibility standard from WCAG2AAA to W…
Browse files Browse the repository at this point in the history
…CAG2AA

* ... in the Grunt Javascript
* Plus, add `live-server` to `peerDependencies` package JSON
  • Loading branch information
nfreear committed Jun 3, 2018
1 parent 9979c4f commit f473d70
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ cache:

# install: npm install

script: grunt
script: npm test

after_script:
- ls -al dist/
- pgrep -lf '(live-server|phantom)'
- ls -al dist/
- pgrep -lf '(live-server|phantom)'

deploy:
provider: npm
Expand Down
6 changes: 3 additions & 3 deletions gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ module.exports = function (grunt) {
test: {
options: { // Task-specific options go here.
// screenCapture: './_pa11y-screen-capture.png',
standard: 'WCAG2AAA',
standard: 'WCAG2AA', // Or 'WCAG2AAA'
timeout: 5000,
wait: 500,
rootElement: '#cookieNotice',
verifyPage: 'id="cookieNotice"'
rootElement: 'body', // Was: '#cookieNotice',
verifyPage: 'id="cookieNotice"' // Not supported?
},
url: [ 'http://localhost:8000/tests/data.html' ]
//, file: [ 'array of files, globbing permitted' ]
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "gruntfile.js",
"browser": "dist/cookie.notice.js",
"scripts": {
"start": "live-server --port=9001",
"test": "grunt"
},
"keywords": [
Expand Down Expand Up @@ -36,6 +37,9 @@
"phantomjs-prebuilt": "^2.1.16",
"qunit": "^2.6.1"
},
"peerDependencies": {
"live-server": "^1.2.0"
},
"engines": {
"node": ">=6.0"
},
Expand Down

0 comments on commit f473d70

Please sign in to comment.