@bucky24/jsbehave 0.12.7 → 0.12.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bucky24/jsbehave",
3
- "version": "0.12.7",
3
+ "version": "0.12.8",
4
4
  "description": "A module that allows BDD testing for browser based testing in Selenium.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/index.js CHANGED
@@ -448,6 +448,7 @@ async function takeScreenshot(test) {
448
448
  if (!activeDriver) {
449
449
  // don't throw, we get here when an error happens so we're already handling a problem
450
450
  console.error(`Unable to take screenshot - driver does not exist`);
451
+ return;
451
452
  }
452
453
  const image = activeDriver.takeScreenshot();
453
454
  const useTest = test.replace(/ /g, "_");