Skip to content

Commit

Permalink
Add test for custom handleError function
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert-Frampton authored and jbalsas committed Mar 29, 2017
1 parent 01838ea commit 44ef649
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,19 @@ describe('Metal Tools - Soy', function() {
done();
});
});

it('should use custom handleError function', function(done) {
var stream = metalToolsSoy({
dest: 'test/fixtures/soy',
handleError: function(err) {
assert.ok(err);
assert.ok(err.message);

done();
},
src: 'test/fixtures/soy/compileError.soy'
});
});
});
});

Expand Down

0 comments on commit 44ef649

Please sign in to comment.