diff options
author | Zac Echola <zac.echola@so.mnscu.edu> | 2014-08-19 21:48:10 +0400 |
---|---|---|
committer | Zac Echola <zac.echola@so.mnscu.edu> | 2014-08-19 21:48:10 +0400 |
commit | ae31bb28f74b306437ca6cb34662935c3910434e (patch) | |
tree | 2621a21eb9b304f8af212e2c0b0675f39496ac68 /Gruntfile.js | |
parent | 0efc199cf011d002c4e943a68856cef804633a6b (diff) |
unit test the things
Diffstat (limited to 'Gruntfile.js')
-rw-r--r-- | Gruntfile.js | 28 |
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. |