diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2018-06-29 12:04:52 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2018-07-02 18:32:23 +0200 |
| commit | 00e3c4464a001cd3b170fba071bd4a19f0147d0b (patch) | |
| tree | 36d448da77e111e4641eb5771ea17b9ff3ccfbf3 /test/components | |
| parent | a2258433e93804117397624ecaea22d970d7e2b9 (diff) | |
| download | mullvadvpn-00e3c4464a001cd3b170fba071bd4a19f0147d0b.tar.xz mullvadvpn-00e3c4464a001cd3b170fba071bd4a19f0147d0b.zip | |
Add option to prefer const over let for immutable variables
Diffstat (limited to 'test/components')
| -rw-r--r-- | test/components/Login.spec.js | 2 | ||||
| -rw-r--r-- | test/components/Settings.spec.js | 2 |
2 files changed, 2 insertions, 2 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); |
