Migrate some more code to ES6 (4).

Review Request #10454 — Created March 20, 2019 and submitted

Information

Review Board
release-4.0.x

Reviewers

This change converts test code inside the resources/ directory to ES6.

Ran js-tests.

Summary ID
Migrate some more code to ES6 (4).
This change converts test code inside the resources/ directory to ES6. Testing done: Ran js-tests.
deef6aa7777f0bc14cdefb4102f8fb8826c007a5
Description From Last Updated

Col: 9 Expected an assignment or function call and instead saw an expression.

reviewbotreviewbot

E501 line too long (89 > 79 characters)

reviewbotreviewbot

E501 line too long (88 > 79 characters)

reviewbotreviewbot

E501 line too long (80 > 79 characters)

reviewbotreviewbot

E501 line too long (82 > 79 characters)

reviewbotreviewbot

For Jasmine, this should be preserved. It represents the text content. We don't want to use fat arrow functions in …

chipx86chipx86

Can you put parens around the calculations? It'll help with readability here.

chipx86chipx86

E501 line too long (89 > 79 characters)

reviewbotreviewbot

E501 line too long (88 > 79 characters)

reviewbotreviewbot

E501 line too long (80 > 79 characters)

reviewbotreviewbot

E501 line too long (82 > 79 characters)

reviewbotreviewbot

This line's too long now.

chipx86chipx86

This line's too long now.

chipx86chipx86

This should be function() {

chipx86chipx86

function()

chipx86chipx86

E501 line too long (89 > 79 characters)

reviewbotreviewbot

E501 line too long (88 > 79 characters)

reviewbotreviewbot

E501 line too long (80 > 79 characters)

reviewbotreviewbot

E501 line too long (82 > 79 characters)

reviewbotreviewbot

E501 line too long (89 > 79 characters)

reviewbotreviewbot

E501 line too long (88 > 79 characters)

reviewbotreviewbot

E501 line too long (80 > 79 characters)

reviewbotreviewbot

E501 line too long (82 > 79 characters)

reviewbotreviewbot
Checks run (2 failed)
flake8 failed.
JSHint failed.

flake8

JSHint

david
Review request changed

Commits:

Summary ID
Migrate some more code to ES6 (4).
This change converts test code inside the resources/ directory to ES6. Testing done: Ran js-tests.
22c2620675f2f620b92d6b4a8d76238292584e90
Migrate some more code to ES6 (4).
This change converts test code inside the resources/ directory to ES6. Testing done: Ran js-tests.
1db504d5a5e587a9dfd9336d18199458576bdf5f

Diff:

Revision 2 (+2432 -2830)

Show changes

Checks run (1 failed, 1 succeeded)

flake8 failed.
JSHint passed.

flake8

chipx86
  1. 
      
  2. Show all issues

    For Jasmine, this should be preserved. It represents the text content. We don't want to use fat arrow functions in any call to suite(), beforeEach(), it(), describe(), etc.

  3. Show all issues

    Can you put parens around the calculations? It'll help with readability here.

  4. 
      
david
Review request changed

Commits:

Summary ID
Migrate some more code to ES6 (4).
This change converts test code inside the resources/ directory to ES6. Testing done: Ran js-tests.
1db504d5a5e587a9dfd9336d18199458576bdf5f
Migrate some more code to ES6 (4).
This change converts test code inside the resources/ directory to ES6. Testing done: Ran js-tests.
c59c498620f9bab7e644a841fa84aa6ab71f4a07

Diff:

Revision 3 (+1368 -1766)

Show changes

Checks run (1 failed, 1 succeeded)

flake8 failed.
JSHint passed.

flake8

chipx86
  1. Looks pretty good. Just a few small things from the undoing of () =>.

  2. Show all issues

    This line's too long now.

  3. Show all issues

    This line's too long now.

  4. Show all issues

    This should be function() {

  5. Show all issues

    function()

  6. 
      
david
Review request changed

Commits:

Summary ID
Migrate some more code to ES6 (4).
This change converts test code inside the resources/ directory to ES6. Testing done: Ran js-tests.
c59c498620f9bab7e644a841fa84aa6ab71f4a07
Migrate some more code to ES6 (4).
This change converts test code inside the resources/ directory to ES6. Testing done: Ran js-tests.
deef6aa7777f0bc14cdefb4102f8fb8826c007a5

Diff:

Revision 4 (+1358 -1752)

Show changes

Checks run (1 failed, 1 succeeded)

flake8 failed.
JSHint passed.

flake8

chipx86
  1. Ship It!
  2. 
      
david
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-4.0.x (1b452f5)
Loading...