summaryrefslogtreecommitdiffhomepage
path: root/test/components
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2018-07-02 19:04:05 +0200
committerAndrej Mihajlov <and@mullvad.net>2018-07-02 19:04:05 +0200
commit56922a2b644a1dc6f4b872e2dfcd84571ca354a3 (patch)
tree36d448da77e111e4641eb5771ea17b9ff3ccfbf3 /test/components
parenta2258433e93804117397624ecaea22d970d7e2b9 (diff)
parent00e3c4464a001cd3b170fba071bd4a19f0147d0b (diff)
downloadmullvadvpn-56922a2b644a1dc6f4b872e2dfcd84571ca354a3.tar.xz
mullvadvpn-56922a2b644a1dc6f4b872e2dfcd84571ca354a3.zip
Merge branch 'eslint-prefer-const'
Diffstat (limited to 'test/components')
-rw-r--r--test/components/Login.spec.js2
-rw-r--r--test/components/Settings.spec.js2
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);