Skip to content

Commit

Permalink
Fixed test failures (core-spec.js)
Browse files Browse the repository at this point in the history
  • Loading branch information
takenspc committed Jul 29, 2014
1 parent 2efc8e1 commit 649458e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/core-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('Core', function(){
it('Set false to rule no effected should result in an error', function(){
var code = '<img src="test.gif" />';
var messages = HTMLHint.verify(code, {
'img-alt-require': false
'alt-require': false
});
expect(messages.length).to.be(0);
});
Expand All @@ -30,18 +30,18 @@ describe('Core', function(){
});

it('Inline ruleset not worked should result in an error', function(){
var code = '<!-- htmlhint img-alt-require:true-->\r\n<img src="test.gif" />';
var code = '<!-- htmlhint alt-require:true-->\r\n<img src="test.gif" />';
var messages = HTMLHint.verify(code, {
'img-alt-require': false
'alt-require': false
});
expect(messages.length).to.be(1);
expect(messages[0].rule.id).to.be('img-alt-require');
expect(messages[0].rule.id).to.be('alt-require');
expect(messages[0].line).to.be(2);
expect(messages[0].col).to.be(1);
expect(messages[0].col).to.be(5);

code = '<!-- htmlhint img-alt-require:false-->\r\n<img src="test.gif" />';
code = '<!-- htmlhint alt-require:false-->\r\n<img src="test.gif" />';
messages = HTMLHint.verify(code, {
'img-alt-require': true
'alt-require': true
});
expect(messages.length).to.be(0);
});
Expand Down

0 comments on commit 649458e

Please sign in to comment.