Closed christopherjbaker closed 7 years ago
Other than creating a stache that has a parsing error and making sure the error has the filename, any suggestions on how to test this? Do we have a simplish way to mock the require('stache')
?
You can use steal-clone
. Something like this should work:
function fakeStache() {
// check that the filename is passed
}
clone({
'can-stache': {
default: fakeStache
}
})
.import('test/tests/foo.stache')
.then(...);
reminder: bump can-stache dependecy