Skip to content

Commit

Permalink
fix(server-side-image-map): return as needs review rather than failure (
Browse files Browse the repository at this point in the history
  • Loading branch information
straker committed Nov 13, 2019
1 parent ac70a16 commit d544856
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/checks/shared/exists.js
@@ -1 +1 @@
return true;
return undefined;
2 changes: 1 addition & 1 deletion lib/checks/shared/exists.json
Expand Up @@ -5,7 +5,7 @@
"impact": "minor",
"messages": {
"pass": "Element does not exist",
"fail": "Element exists"
"incomplete": "Element exists"
}
}
}
4 changes: 2 additions & 2 deletions test/checks/shared/exists.js
@@ -1,7 +1,7 @@
describe('exists', function() {
'use strict';

it('should return true', function() {
assert.isTrue(checks.exists.evaluate());
it('should return undefined', function() {
assert.isUndefined(checks.exists.evaluate());
});
});
@@ -1,2 +1,2 @@
<p><img ismap src="image.jpg" id="fail" /></p>
<p><img ismap src="image.jpg" id="incomplete" /></p>
<p><img src="image.jpg" id="pass" /></p>
@@ -1,5 +1,5 @@
{
"description": "server-side-image-map test",
"rule": "server-side-image-map",
"violations": [["#fail"]]
"incomplete": [["#incomplete"]]
}

0 comments on commit d544856

Please sign in to comment.