Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
test: use custom rule with configure
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcy Sutton committed May 20, 2017
1 parent dea9903 commit 95b4f7c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion test/integration/configure-frames.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var runWebdriver = require('../run-webdriver'),
assert = require('chai').assert,
host = 'localhost',
json = require('../fixtures/attest-config.json'),
json = require('../fixtures/custom-rule-config.json'),
AxeBuilder = require('../../lib');

if (process.env.REMOTE_TESTSERVER_HOST) {
Expand Down
6 changes: 3 additions & 3 deletions test/integration/doc-dylang.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* of axe-core
*/
var runWebdriver = require('../run-webdriver'),
json = require('../fixtures/attest-config.json'),
json = require('../fixtures/custom-rule-config.json'),
assert = require('chai').assert,
AxeBuilder = require('../../lib'),
host = 'localhost',
Expand Down Expand Up @@ -36,9 +36,9 @@ describe('doc-dylang.html', function () {
});

it('should find violations with customized helpUrl', function (done) {
var src = '\naxe.configure(' + JSON.stringify(json) + ');';
src = axe.source + src;
var src = axe.source;
AxeBuilder(driver, src)
.configure(json)
.withRules(['dylang'])
.analyze(function (results) {
assert.lengthOf(results.violations, 1);
Expand Down

0 comments on commit 95b4f7c

Please sign in to comment.