Closed Bug 1197795 Opened 9 years ago Closed 9 years ago

Update Loop's library versions (eslint 1.2.1, sinon 1.16.1)

Categories

(Hello (Loop) :: Client, defect)

defect
Not set
normal
Points:
1

Tracking

(firefox43 fixed)

VERIFIED FIXED
mozilla43
Iteration:
43.1 - Aug 24
Tracking Status
firefox43 --- fixed

People

(Reporter: standard8, Assigned: standard8)

Details

Attachments

(1 file)

Iteration: --- → 43.1 - Aug 24
Points: --- → 1
This does the simple updates. Not much new in eslint, but worth upgrading anyway I think.

The test_looppush_initialize.js changes are partially due to eslint - I think there's a regression in what it has as a valid case statement, however, I also think the code is more readable with hard-coded numbers than it is with the ++n.

sinon has various things we may/may not need, but I think the "bunch of bug fixes" bucket makes it reasonable to update whilst we're in the updating area ;-)
Attachment #8651749 - Flags: review?(mdeboer)
Comment on attachment 8651749 [details] [diff] [review]
Update Loop's library versions (eslint 1.2.1, sinon 1.16.1).

Review of attachment 8651749 [details] [diff] [review]:
-----------------------------------------------------------------

Cool! When will we upgrade React? ;-)

::: browser/components/loop/test/xpcshell/test_looppush_initialize.js
@@ +164,2 @@
>      switch (++pushServerRequestCount) {
> +    case 1:

err, much better!
Attachment #8651749 - Flags: review?(mdeboer) → review+
https://hg.mozilla.org/mozilla-central/rev/3540990c6cc0
Status: NEW → RESOLVED
Closed: 9 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
I updated eslint to 1.2.1 but when I run all loop tests, I get a bunch of errors for missing block-spacing:

ui/ui-showcase.jsx
  7:1  error  Definition for rule 'block-spacing' was not found  block-spacing

✖ 128 problems (128 errors, 0 warnings)

$ grep block-spacing browser/components/loop/.eslintrc
    "block-spacing": [2, "always"],
(In reply to Ed Lee :Mardak from comment #5)
> I updated eslint to 1.2.1 but when I run all loop tests, I get a bunch of
> errors for missing block-spacing:

Did you update both the version in standalone (make install), plus the global version?
Aha! That was it. I missed the standalone's copy with make install. Thanks.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: