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 a602484
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions test/checks/navigation/heading-order.js
Original file line number Diff line number Diff line change
Expand Up @@ -444,11 +444,7 @@ describe('heading-order', function() {
},
{
ancestry: ['path2'],
level: 3
},
{
ancestry: ['path3'],
level: 4
level: 2
}
]
},
Expand All @@ -462,19 +458,12 @@ describe('heading-order', function() {
ancestry: ['path2']
},
result: true
},
{
node: {
ancestry: ['path3']
},
result: true
}
];

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);
});

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

0 comments on commit a602484

Please sign in to comment.