diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2018-07-02 19:04:05 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2018-07-02 19:04:05 +0200 |
| commit | 56922a2b644a1dc6f4b872e2dfcd84571ca354a3 (patch) | |
| tree | 36d448da77e111e4641eb5771ea17b9ff3ccfbf3 /test | |
| parent | a2258433e93804117397624ecaea22d970d7e2b9 (diff) | |
| parent | 00e3c4464a001cd3b170fba071bd4a19f0147d0b (diff) | |
| download | mullvadvpn-56922a2b644a1dc6f4b872e2dfcd84571ca354a3.tar.xz mullvadvpn-56922a2b644a1dc6f4b872e2dfcd84571ca354a3.zip | |
Merge branch 'eslint-prefer-const'
Diffstat (limited to 'test')
| -rw-r--r-- | test/components/Login.spec.js | 2 | ||||
| -rw-r--r-- | test/components/Settings.spec.js | 2 | ||||
| -rw-r--r-- | test/keyframe-animation.spec.js | 26 |
3 files changed, 15 insertions, 15 deletions
diff --git a/test/components/Login.spec.js b/test/components/Login.spec.js index 90bb70f4b3..ce7f347acf 100644 --- a/test/components/Login.spec.js +++ b/test/components/Login.spec.js @@ -8,7 +8,7 @@ import AccountInput from '../../app/components/AccountInput'; describe('components/Login', () => { it('notifies on the first change after failure', () => { - let onFirstChange = spy(); + const onFirstChange = spy(); const props = { account: Object.assign({}, defaultAccount, { status: 'failed', diff --git a/test/components/Settings.spec.js b/test/components/Settings.spec.js index f564902c2a..ffdf0bf545 100644 --- a/test/components/Settings.spec.js +++ b/test/components/Settings.spec.js @@ -168,7 +168,7 @@ describe('components/Settings', () => { }); it('should call external links callback', () => { - let collectedExternalLinkTypes: Array<string> = []; + const collectedExternalLinkTypes: Array<string> = []; const props = makeProps(loggedOutAccountState, settingsState, { onExternalLink: (type) => { collectedExternalLinkTypes.push(type); diff --git a/test/keyframe-animation.spec.js b/test/keyframe-animation.spec.js index 926bb79625..08a177ea79 100644 --- a/test/keyframe-animation.spec.js +++ b/test/keyframe-animation.spec.js @@ -14,7 +14,7 @@ describe('lib/keyframe-animation', function() { }; it('should play sequence', (done) => { - let seq = []; + const seq = []; const animation = newAnimation(); animation.onFrame = () => { seq.push(animation._currentFrame); @@ -29,7 +29,7 @@ describe('lib/keyframe-animation', function() { }); it('should play one frame', (done) => { - let seq = []; + const seq = []; const animation = newAnimation(); animation.onFrame = () => { seq.push(animation._currentFrame); @@ -44,7 +44,7 @@ describe('lib/keyframe-animation', function() { }); it('should play sequence with custom frames', (done) => { - let seq = []; + const seq = []; const animation = newAnimation(); animation.onFrame = () => { seq.push(animation._currentFrame); @@ -62,7 +62,7 @@ describe('lib/keyframe-animation', function() { }); it('should play sequence with custom frames in reverse', (done) => { - let seq = []; + const seq = []; const animation = newAnimation(); animation.onFrame = () => { seq.push(animation._currentFrame); @@ -81,7 +81,7 @@ describe('lib/keyframe-animation', function() { }); it('should begin from current state starting below range', (done) => { - let seq = []; + const seq = []; const animation = newAnimation(); animation.onFrame = () => { seq.push(animation._currentFrame); @@ -103,7 +103,7 @@ describe('lib/keyframe-animation', function() { }); it('should begin from current state starting below range reverse', (done) => { - let seq = []; + const seq = []; const animation = newAnimation(); animation.onFrame = () => { seq.push(animation._currentFrame); @@ -126,7 +126,7 @@ describe('lib/keyframe-animation', function() { }); it('should begin from current state starting above range', (done) => { - let seq = []; + const seq = []; const animation = newAnimation(); animation.onFrame = () => { seq.push(animation._currentFrame); @@ -148,7 +148,7 @@ describe('lib/keyframe-animation', function() { }); it('should begin from current state starting above range reverse', (done) => { - let seq = []; + const seq = []; const animation = newAnimation(); animation.onFrame = () => { seq.push(animation._currentFrame); @@ -171,7 +171,7 @@ describe('lib/keyframe-animation', function() { }); it('should play sequence in reverse', (done) => { - let seq = []; + const seq = []; const animation = newAnimation(); animation.onFrame = () => { seq.push(animation._currentFrame); @@ -187,7 +187,7 @@ describe('lib/keyframe-animation', function() { }); it('should play sequence on repeat', (done) => { - let seq = []; + const seq = []; const animation = newAnimation(); const expectedFrames = [0, 1, 2, 3, 4, 0, 1, 2, 3, 4]; @@ -206,7 +206,7 @@ describe('lib/keyframe-animation', function() { }); it('should play sequence on repeat in reverse', (done) => { - let seq = []; + const seq = []; const animation = newAnimation(); const expectedFrames = [4, 3, 2, 1, 0, 4, 3, 2, 1, 0]; @@ -226,7 +226,7 @@ describe('lib/keyframe-animation', function() { }); it('should alternate sequence', (done) => { - let seq = []; + const seq = []; const animation = newAnimation(); const expectedFrames = [0, 1, 2, 3, 4, 3, 2, 1, 0]; @@ -246,7 +246,7 @@ describe('lib/keyframe-animation', function() { }); it('should alternate reverse sequence', (done) => { - let seq = []; + const seq = []; const animation = newAnimation(); const expectedFrames = [4, 3, 2, 1, 0, 1, 2, 3, 4]; |
