Skip to content

Commit

Permalink
Add stubs for test to attempt to test that errors are fired when src
Browse files Browse the repository at this point in the history
files are missing.

@todo Learn how to write the tests to cover this issue.
  • Loading branch information
Richard Quadling authored and Richard Quadling committed Jul 21, 2017
1 parent 42a889c commit 5f3d237
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,26 @@ module.exports = function (grunt) {
src: ['test/fixtures/issue_26.tpl.html'],
dest: 'tmp/issue_26_withoutCollapseWhitespaceSingleQuotes.js'
},
issue_76_missingSourceFile: {
src: 'test/fixtures/issue_76_missing.tpl.html',
dest: 'tmp/issue_76_missingSourceFile.js'
},
issue_76_missingSourceFiles: {
src: ['test/fixtures/issue_76_missing_1.tpl.html', 'test/fixtures/issue_76_missing_2.tpl.html'],
dest: 'tmp/issue_76_missingSourceFiles.js'
},
issue_76_missingSourceFilesFirst: {
src: ['test/fixtures/issue_76_missing_1.tpl.html', 'test/fixtures/one.tpl.html'],
dest: 'tmp/issue_76_missingSourceFilesFirst.js'
},
issue_76_missingSourceFilesLast: {
src: ['test/fixtures/one.tpl.html', 'test/fixtures/issue_76_missing_1.tpl.html'],
dest: 'tmp/issue_76_missingSourceFilesLast.js'
},
issue_76_missingSourceFilesMiddle: {
src: ['test/fixtures/one.tpl.html', 'test/fixtures/issue_76_missing_1.tpl.html', 'test/fixtures/two.tpl.html'],
dest: 'tmp/issue_76_missingSourceFilesMiddle.js'
},
module_as_function: {
options: {
module: function (file) {
Expand Down
25 changes: 25 additions & 0 deletions test/html2js_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,31 @@ exports.html2js = {

test.done();
},
issue_76_missingSourceFile: function(test){
// @todo Not exactly sure what should go in here!
test.expect(0);
test.done();
},
issue_76_missingSourceFiles: function(test){
// @todo Not exactly sure what should go in here!
test.expect(0);
test.done();
},
issue_76_missingSourceFilesFirst: function(test){
// @todo Not exactly sure what should go in here!
test.expect(0);
test.done();
},
issue_76_missingSourceFilesLast: function(test){
// @todo Not exactly sure what should go in here!
test.expect(0);
test.done();
},
issue_76_missingSourceFilesMiddle: function(test){
// @todo Not exactly sure what should go in here!
test.expect(0);
test.done();
},
module_as_function: function (test) {
test.expect(1);

Expand Down

0 comments on commit 5f3d237

Please sign in to comment.