We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc4120b commit 39ff1f1Copy full SHA for 39ff1f1
lib/runner.js
@@ -49,12 +49,12 @@ Runner.prototype.link = function(test) {
49
}
50
51
function getIncludesFor(file) {
52
- file.attrs.includes.forEach(function(dep) {
53
- if(!helpers[dep]) throw 'Helper not found: ' + dep;
+ file.attrs.includes.forEach(function(dep) {
+ if(!helpers[dep]) throw new Error('Helper not found: ' + dep);
54
if(included.indexOf(dep) > -1) return;
55
56
includeContent += helpers[dep].contents;
57
-
+
58
getIncludesFor(helpers[dep]);
59
})
60
0 commit comments