Skip to content

Commit

Permalink
chore: tweak heading-order test
Browse files Browse the repository at this point in the history
  • Loading branch information
WilcoFiers committed Jun 2, 2021
1 parent 1d508c8 commit 4d4106b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions test/checks/navigation/heading-order.js
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,11 @@ describe('heading-order', function() {
},
{
ancestry: ['path2'],
level: 3
level: 2
},
{
ancestry: ['iframe'],
level: -1
},
{
ancestry: ['path3'],
Expand Down Expand Up @@ -473,8 +477,8 @@ describe('heading-order', function() {

var afterResults = checks['heading-order'].after(results);
assert.isTrue(afterResults[0].result);
assert.isFalse(afterResults[1].result);
assert.isTrue(afterResults[2].result);
assert.isTrue(afterResults[1].result);
assert.isFalse(afterResults[2].result);
});

it('should not error if iframe is first result', function() {
Expand Down

0 comments on commit 4d4106b

Please sign in to comment.