From a8038a0f0c49f4de0dd6f58a362d7d9ada27c965 Mon Sep 17 00:00:00 2001 From: Dylan Barrell Date: Tue, 4 Aug 2015 08:56:32 -0400 Subject: [PATCH] Build: add accessibility testing Fixes #99 --- Gruntfile.js | 17 ++++++++--------- tasks/options/axe-webdriver.js | 5 ++++- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index b11d843..7601acb 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -1,11 +1,10 @@ module.exports = function( grunt ) { - grunt.loadNpmTasks("axe-grunt-webdriver"); - var path = require( "path" ); - require( "load-grunt-config" )( grunt, { - configPath: [ - path.join( process.cwd(), "tasks/options" ), - path.join( process.cwd(), "tasks" ) - ], - init: true - } ); +var path = require( "path" ); +require( "load-grunt-config" )( grunt, { + configPath: [ + path.join( process.cwd(), "tasks/options" ), + path.join( process.cwd(), "tasks" ) + ], + init: true +} ); }; diff --git a/tasks/options/axe-webdriver.js b/tasks/options/axe-webdriver.js index 5002e9c..bad46d6 100644 --- a/tasks/options/axe-webdriver.js +++ b/tasks/options/axe-webdriver.js @@ -1,4 +1,6 @@ -module.exports = { +module.exports = function( grunt ) { +grunt.loadNpmTasks("axe-grunt-webdriver"); +return { firefox: { options: { threshold: 0 @@ -7,3 +9,4 @@ module.exports = { dest: 'tmp/gu.json' } }; +};