Skip to content

Commit

Permalink
Add test for usemin_not_found
Browse files Browse the repository at this point in the history
  • Loading branch information
ericclemmons committed Apr 4, 2014
1 parent ea97af2 commit 8dd13f3
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/angular-templates_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ exports.ngtemplates = {
test.done();
},

custom_usemin_not_found: function(test) {
test.expect(1);

test.equal(grunt.file.read('test/expected/custom_concat_usemin_not_found.js'), grunt.file.read('tmp/custom_concat_usemin_not_found.js'));

test.done();
},

html5: function(test) {
test.expect(1);

Expand Down
25 changes: 25 additions & 0 deletions test/expected/custom_concat_usemin_not_found.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
angular.module('custom_usemin_not_found').run(['$templateCache', function($templateCache) {
'use strict';

$templateCache.put('test/fixtures/one.html',
"<h1>One</h1>\n" +
"\n" +
"<p class=\"\">I am one.</p>\n" +
"\n" +
"<script type=\"text/javascript\">\n" +
" // Test\n" +
" /* comments */\n" +
" var foo = 'bar';\n" +
"</script>\n"
);


$templateCache.put('test/fixtures/two/two.html',
"<h2>Two</h2>\n" +
"\n" +
"<!-- Comment for two -->\n" +
"\n" +
"<textarea readonly=\"readonly\">We are two.</textarea>\n"
);

}]);

0 comments on commit 8dd13f3

Please sign in to comment.