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 authored and lgandecki committed Jul 19, 2020
1 parent eb838d5 commit cbe8c6e
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 cbe8c6e

Please sign in to comment.