Delete trailing slashes from path

This commit is contained in:
Carlos Alcaide Corvo committed 2021-10-15 09:35:28 -07:00
1 parent fe48e0eba2
commit af2e111dcd
1 file changed
+1 -1
+1 -1
View File
@@ -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