From a60248485637d084a4e5eea0fdb1cdee98dbbcef Mon Sep 17 00:00:00 2001 From: Wilco Fiers Date: Wed, 2 Jun 2021 17:31:23 +0200 Subject: [PATCH] chore: tweak heading-order test --- test/checks/navigation/heading-order.js | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/test/checks/navigation/heading-order.js b/test/checks/navigation/heading-order.js index b0930532b2..42de93ec1b 100644 --- a/test/checks/navigation/heading-order.js +++ b/test/checks/navigation/heading-order.js @@ -444,11 +444,7 @@ describe('heading-order', function() { }, { ancestry: ['path2'], - level: 3 - }, - { - ancestry: ['path3'], - level: 4 + level: 2 } ] }, @@ -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() {