Skip to content

Commit a1f4f9a

Browse files
authored
Merge pull request #260 from paazmaya/travis-automation
Automate with Travis CI
2 parents 0f7a282 + 99528b1 commit a1f4f9a

3 files changed

Lines changed: 13 additions & 2 deletions

File tree

.travis.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
sudo: false
2+
language: node_js
3+
node_js:
4+
- "10"
5+
script:
6+
- npm test
7+
cache:
8+
directories:
9+
- node_modules
10+
matrix:
11+
fast_finish: true

Standards/WCAG2AAA/Sniffs/Principle4/Guideline4_1/4_1_2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ _global.HTMLCS_WCAG2AAA_Sniffs_Principle4_Guideline4_1_4_1_2 = {
268268

269269
var msg = _global.HTMLCS.getTranslation("4_1_2_msg_pattern").replace(/\{\{msgNodeType\}\}/g, msgNodeType).replace(/\{\{builtAttrs\}\}/g, builtAttrs.join(', '));
270270
if (element.hasAttribute('role') && element.getAttribute('role') === 'button') {
271-
msg = _global.HTMLCS.getTranslation("4_1_2_msg_pattern_role_of_button").replace(/\{\{builtAttrs\}\}/g, builtAttrs.join(', '))
271+
msg = _global.HTMLCS.getTranslation("4_1_2_msg_pattern_role_of_button").replace(/\{\{builtAttrs\}\}/g, builtAttrs.join(', '));
272272
}
273273
errors.push({
274274
element: element,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"scripts": {
1111
"prepack": "grunt build",
1212
"build": "grunt build",
13-
"test": "echo \"Error: no test specified\" && exit 1"
13+
"test": "grunt eslint"
1414
},
1515
"engines": {
1616
"node": ">=6"

0 commit comments

Comments
 (0)