-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from revjet-qa/feature/semicolons
Enabled semicolons and strict linting rules
- Loading branch information
Showing
9 changed files
with
121 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
'use strict' | ||
'use strict'; | ||
|
||
const fs = require('fs') | ||
const files = fs.readdirSync('./src/steps') | ||
const fs = require('fs'); | ||
const files = fs.readdirSync('./src/steps'); | ||
|
||
files.forEach((f) => { | ||
const path = `./src/steps/${f}` | ||
const fileSteps = require(path) | ||
const path = `./src/steps/${f}`; | ||
const fileSteps = require(path); | ||
|
||
if (typeof fileSteps === 'function') { | ||
fileSteps.apply(this) | ||
fileSteps.apply(this); | ||
} | ||
}) | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
const escapeRegExp = function (str) { | ||
return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\$&') | ||
} | ||
return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\$&'); | ||
}; | ||
|
||
const _r = function (str, flags) { | ||
return new RegExp(escapeRegExp(str), flags) | ||
} | ||
return new RegExp(escapeRegExp(str), flags); | ||
}; | ||
|
||
module.exports = { | ||
escapeRegExp, | ||
_r | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
let e = {} | ||
let e = {}; | ||
|
||
e.txtHeader = '//*[@id="header"]' | ||
e.txtHeader = '//*[@id="header"]'; | ||
|
||
module.exports = e | ||
module.exports = e; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.