Skip to content

Commit

Permalink
fix(loader.js): pass spec as string to createTestsFromFeature fn
Browse files Browse the repository at this point in the history
Suggested fix. Unfortunately test case still fails.

re #415
  • Loading branch information
ralphpulselive committed Jul 18, 2020
1 parent 99deab6 commit 83ef60f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ const { getCucumberJsonConfig } = require("./getCucumberJsonConfig");
const createCucumber = (filePath, cucumberJson, spec, toRequire, name) =>
`
${cucumberTemplate}
window.cucumberJson = ${JSON.stringify(cucumberJson)};
describe(\`${name}\`, function() {
${toRequire.join("\n")}
createTestsFromFeature('${filePath}', \`${jsStringEscape(spec)}\`);
createTestsFromFeature('${filePath}', '${jsStringEscape(spec)}');
});
`;

Expand Down

0 comments on commit 83ef60f

Please sign in to comment.