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
diff options
context:
space:
mode:
authorZac Echola <zac.echola@so.mnscu.edu>2014-08-19 21:48:10 +0400
committerZac Echola <zac.echola@so.mnscu.edu>2014-08-19 21:48:10 +0400
commitae31bb28f74b306437ca6cb34662935c3910434e (patch)
tree2621a21eb9b304f8af212e2c0b0675f39496ac68 /Gruntfile.js
parent0efc199cf011d002c4e943a68856cef804633a6b (diff)
unit test the things
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js28
1 files changed, 27 insertions, 1 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index 58094fc..e2248a8 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -30,7 +30,33 @@ module.exports = function(grunt) {
// Configuration to be run (and then tested).
bootlint: {
- files: ['test/fixtures/missing-doctype']
+ default_options: {
+ options: {
+ },
+ files: {
+ 'tmp/default_options': [
+ 'test/fixtures/missing-doctype.html',
+ 'test/fixtures/missing-charset.html',
+ ]
+ }
+ },
+ custom_options: {
+ options: {
+ relaxerror: ['Document is missing a DOCTYPE declaration'],
+ },
+ files: {
+ 'tmp/default_options': [
+ 'test/fixtures/missing-doctype.html',
+ 'test/fixtures/missing-charset.html',
+ ]
+ }
+ },
+ pass: {
+ options: {},
+ files: {
+ 'tmp/pass': 'test/fixtures/pass.html'
+ },
+ },
},
// Unit tests.