Skip to content

Conversation

@mtgto
Copy link
Contributor

@mtgto mtgto commented Mar 7, 2020

Background

I try to update Spectron to WebDriverIO v5 (#349), but I realized I have to refactor it before update.

Changes

Use ES6 features: class keyword, const/let, arrow functions.

  • Use class keywords for Application, Api, ChromeDriver
  • Use const or let for definition variables instead of var
  • Use arrow functions instead of function()
    • Except mocha.is and addClientProperty, addClientProperties in api.js (this script uses this)
    • Almost all self could be deleted

- Use `class` keywords for Application, Api
- Use `const` or `let` for variable definitions instead of `var`
- Use arrow functions instead of `function()`
@mtgto
Copy link
Contributor Author

mtgto commented Apr 4, 2020

Do anyone have an idea about my PR?
I don't mind CI is broken because other pr has same faults. ex #565

@mtgto
Copy link
Contributor Author

mtgto commented Jul 4, 2020

Before I create this pull request, I wanted to upgrade WebDriverIO to version 6, but this repository uses old javascript.
So I created this pull request to refresh.

My wish is already accomplished by #631, I close this pull request.

If you guys didn't need my fix, I can close this pull request earlier. I wanted your reaction.

@mtgto mtgto closed this Jul 4, 2020
@mtgto mtgto deleted the es6 branch July 4, 2020 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant