From 3e5c6ad6d39e6b5de278a2497587225042442431 Mon Sep 17 00:00:00 2001 From: ssanaul Date: Thu, 21 Sep 2017 13:36:50 -0500 Subject: [PATCH] test: add test to ensure correct number of violations nodes --- .../landmark-main-is-top-level-fail.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/integration/full/landmark-main-is-top-level/landmark-main-is-top-level-fail.js b/test/integration/full/landmark-main-is-top-level/landmark-main-is-top-level-fail.js index 49e72bc5a6..2531fd2515 100644 --- a/test/integration/full/landmark-main-is-top-level/landmark-main-is-top-level-fail.js +++ b/test/integration/full/landmark-main-is-top-level/landmark-main-is-top-level-fail.js @@ -16,6 +16,10 @@ describe('landmark-main-is-top-level test fail', function () { it('should find 1', function () { assert.lengthOf(results.violations, 1); }); + + it('should find 4 nodes', function () { + assert.lengthOf(results.violations[0].nodes, 4); + }); }); describe('passes', function () {