Skip to content

Commit bc6dfb3

Browse files
ralphsaunderslgandecki
authored andcommitted
fix(featuresloader.js): pass spec as string to createTestsFromFeature fn
All test cases now passing fix #415
1 parent cbe8c6e commit bc6dfb3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/featuresLoader.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ const createCucumber = (
2323
window.cucumberJson = ${JSON.stringify(cucumberJson)};
2424
2525
var moduleCache = arguments[5];
26-
26+
2727
function clearFromCache(moduleId, instance){
2828
if(isWebpack()){
2929
delete require.cache[moduleId];
3030
} else {
3131
clearFromCacheBrowserify(instance);
3232
}
3333
}
34-
34+
3535
function isWebpack(){
3636
return !!require.cache
3737
}
@@ -60,10 +60,10 @@ const createCucumber = (
6060
nonGlobalToRequire
6161
.find(fileSteps => fileSteps[filePath])
6262
[filePath].join("\n")}
63-
64-
createTestsFromFeature('${path.basename(filePath)}', \`${jsStringEscape(
63+
64+
createTestsFromFeature('${path.basename(filePath)}', '${jsStringEscape(
6565
spec
66-
)}\`);
66+
)}');
6767
})
6868
`
6969
)

0 commit comments

Comments
 (0)