Skip to content

Commit

Permalink
auto fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Williangalvani committed Jul 7, 2024
1 parent 51c5646 commit a9bfd12
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/e2e/custom-assertions/elementCount.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ exports.assertion = function (selector, count) {
return res.value
}
this.command = function (cb) {
var self = this
const self = this
return this.api.execute(function (selector) {
return document.querySelectorAll(selector).length
}, [selector], function (res) {
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/nightwatch.conf.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require('@babel/register')
var config = require('../../config')
const config = require('../../config')

// http://nightwatchjs.org/gettingstarted#settings-file
module.exports = {
Expand Down
6 changes: 3 additions & 3 deletions test/e2e/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
process.env.NODE_ENV = 'testing'

const devConfigPromise = require('../../build/webpack.dev.conf')
var exec = require('child_process').exec
const exec = require('child_process').exec

devConfigPromise.then(devConfig => {
exec('cd $(pwd)/dist && python3 -m http.server 8080', function callback(error, stdout, stderr){
exec('cd $(pwd)/dist && python3 -m http.server 8080', function callback (error, stdout, stderr) {
console.log(error)
console.log(stdout)
console.log(stderr)
});
})
})
.then(() => {
// 2. run the nightwatch test suite against it
Expand Down

0 comments on commit a9bfd12

Please sign in to comment.