Skip to content

Commit f2baa30

Browse files
committed
Add QUnit test suite, add qunit task to Gruntfile
1 parent 55501e4 commit f2baa30

File tree

7 files changed

+12135
-2
lines changed

7 files changed

+12135
-2
lines changed

grunt.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@ module.exports = function(grunt) {
1616
microbanner: '/*! <%= pkg.title || pkg.name %> v<%= pkg.version %> | Copyright <%= grunt.template.today("yyyy") %>, <%= pkg.author.name %> | <%= pkg.homepage %> | <%= _.pluck(pkg.licenses, "url").join(", ") %> */'
1717
},
1818
lint: {
19-
files: ['grunt.js', 'src/**/*.js']
19+
files: ['grunt.js', 'test/**/*.js', 'src/**/*.js']
2020
},
21+
qunit: {
22+
files: ['test/**/*.html']
23+
},
2124
concat: {
2225
dist: {
2326
src: ['<banner:meta.banner>', '<file_strip_banner:src/<%= pkg.name %>.js>'],
@@ -56,6 +59,6 @@ module.exports = function(grunt) {
5659
});
5760

5861
// Default task.
59-
grunt.registerTask('default', 'lint concat min');
62+
grunt.registerTask('default', 'lint qunit concat min');
6063

6164
};

0 commit comments

Comments
 (0)