Skip to content

Commit

Permalink
Added tests for AMD using the grunt jasmine require template
Browse files Browse the repository at this point in the history
  • Loading branch information
badsyntax committed Jun 6, 2013
1 parent ae7535d commit 21e3dd7
Show file tree
Hide file tree
Showing 4 changed files with 412 additions and 368 deletions.
30 changes: 26 additions & 4 deletions GruntFile.js
Expand Up @@ -32,10 +32,32 @@ module.exports = function(grunt) {
}
},
jasmine: {
src: ['src/handlebars.form-helpers.js'],
options: {
specs: 'spec/**/*.spec.js',
vendor: ['components/handlebars.js/dist/handlebars.js']
browserGlobal: {
src: ['src/handlebars.form-helpers.js'],
options: {
specs: 'spec/**/*.spec.js',
vendor: ['components/handlebars.js/dist/handlebars.js']
}
},
browserAMD: {
src: ['src/handlebars.form-helpers.js'],
options: {
specs: 'spec/**/*.spec.js',
template: require('grunt-template-jasmine-requirejs'),
templateOptions: {
requireConfig: {
baseUrl: '',
paths: {
handlebars: "components/handlebars.js/dist/handlebars"
},
shim: {
handlebars: {
exports: "Handlebars"
}
}
}
}
}
}
}
});
Expand Down
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -21,6 +21,7 @@
"grunt": "~0.4.1",
"grunt-contrib-uglify": "~0.1.2rc7",
"grunt-contrib-jshint": "~0.1.1",
"grunt-contrib-jasmine": "~0.3.3"
"grunt-contrib-jasmine": "~0.3.3",
"grunt-template-jasmine-requirejs": "~0.1.2"
}
}

0 comments on commit 21e3dd7

Please sign in to comment.