From 6f083dce6e8b3652d711602205b17831d4dc5013 Mon Sep 17 00:00:00 2001 From: Zac Echola Date: Fri, 17 Oct 2014 21:48:34 -0500 Subject: basic support for bootlint 0.5.0 --- test/bootlint_test.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'test') diff --git a/test/bootlint_test.js b/test/bootlint_test.js index 2abb96e..466b2b4 100644 --- a/test/bootlint_test.js +++ b/test/bootlint_test.js @@ -45,28 +45,24 @@ exports.bootlint = { }); }, custom_options: function(test) { - test.expect(3); + test.expect(2); grunt.util.spawn({ grunt: true, args: ['bootlint:custom_options', '--no-color'], }, function(err, result) { test.ok(result.stdout.indexOf("Document is missing a DOCTYPE declaration") === -1, 'Should not warn about missing a DOCTYPE'); - test.ok(result.stdout.indexOf("is OK") >= 0, - 'Should print filepath is OK!'); test.ok(result.stdout.indexOf("1 lint errors found") >= 0, 'Should print correct number of lint errors'); test.done(); }); }, pass: function(test) { - test.expect(2); + test.expect(1); grunt.util.spawn({ grunt: true, args: ['bootlint:pass', '--no-color'], }, function(err, result) { - test.ok(result.stdout.indexOf("is OK") >= 0, - 'Should print filepath is OK!'); test.ok(result.stdout.indexOf("No Bootlint errors!") >= 0, 'Should print "No Bootlint errors!" message'); test.done(); -- cgit v1.2.3