Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/grunt-bootlint.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorZac Echola <zac.echola@gmail.com>2014-10-18 06:48:34 +0400
committerZac Echola <zac.echola@gmail.com>2014-10-18 06:48:34 +0400
commit6f083dce6e8b3652d711602205b17831d4dc5013 (patch)
treeaa6530760fb12238c80790732a0f91611df5975f /test
parent9dc0bfd3664db962c3ec69f099ca6d04dadfcb38 (diff)
basic support for bootlint 0.5.0
Diffstat (limited to 'test')
-rw-r--r--test/bootlint_test.js8
1 files changed, 2 insertions, 6 deletions
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();