Delete trailing slashes from path
This commit is contained in:
1 parent
fe48e0eba2
commit
af2e111dcd
1 file changed
+1
-1
@@ -9,7 +9,7 @@ const path = require('path');
|
||||
*/
|
||||
exports.generateScreenshotPath = (screenshotTestDirectory, fileName) => {
|
||||
const screenshotFormat = '.png';
|
||||
const screenshotsRootPath = path.join(__dirname, '/screenshots/');
|
||||
const screenshotsRootPath = path.join(__dirname, 'screenshots');
|
||||
const screenshotPath = path.join(
|
||||
screenshotsRootPath,
|
||||
screenshotTestDirectory
|
||||
|
||||
Reference in new issue
Block a user