Skip to content

Commit

Permalink
chore: fixed router/e2e/runner function name spell mistake (#1579)
Browse files Browse the repository at this point in the history
Co-authored-by: 王影 <wangying@everhigh.com.cn>
  • Loading branch information
callmegaga and 王影 committed Oct 14, 2022
1 parent 3a939c9 commit dab08ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/router/e2e/runner.js
Expand Up @@ -45,7 +45,7 @@ BROWSERSTACK_ACCESS_KEY is not set. Did you create the .env file?
if (error) throw error

console.log('Connected. Now testing...')
await runNighwatchCli().finally(() => {
await runNightwatchCli().finally(() => {
// Code to stop browserstack local after end of single test
bs_local.stop(() => {
server?.close()
Expand All @@ -54,7 +54,7 @@ BROWSERSTACK_ACCESS_KEY is not set. Did you create the .env file?
}
)
} else {
await runNighwatchCli()
await runNightwatchCli()
server?.close()
}
} catch (ex) {
Expand All @@ -65,7 +65,7 @@ BROWSERSTACK_ACCESS_KEY is not set. Did you create the .env file?
}
})()

function runNighwatchCli() {
function runNightwatchCli() {
return new Promise((resolve, reject) => {
Nightwatch.cli(argv => {
Nightwatch.CliRunner(argv).setup().runTests().then(resolve).catch(reject)
Expand Down

0 comments on commit dab08ae

Please sign in to comment.