Skip to content

Commit

Permalink
test: add test to ensure correct number of violations nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
sulsanaul committed Sep 21, 2017
1 parent 73ed9cf commit 3e5c6ad
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit 3e5c6ad

Please sign in to comment.