aboutsummaryrefslogtreecommitdiff
path: root/test/settings/components/form/KeymapsForm.test.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'test/settings/components/form/KeymapsForm.test.tsx')
-rw-r--r--test/settings/components/form/KeymapsForm.test.tsx14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/settings/components/form/KeymapsForm.test.tsx b/test/settings/components/form/KeymapsForm.test.tsx
index 1d1e77c..ccc772c 100644
--- a/test/settings/components/form/KeymapsForm.test.tsx
+++ b/test/settings/components/form/KeymapsForm.test.tsx
@@ -9,23 +9,23 @@ import { expect } from 'chai';
describe("settings/form/KeymapsForm", () => {
describe('render', () => {
it('renders keymap fields', () => {
- let root = ReactTestRenderer.create(<KeymapsForm value={FormKeymaps.fromJSON({
+ const root = ReactTestRenderer.create(<KeymapsForm value={FormKeymaps.fromJSON({
'scroll.vertically?{"count":1}': 'j',
'scroll.vertically?{"count":-1}': 'k',
})} />).root
- let inputj = root.findByProps({ id: 'scroll.vertically?{"count":1}' });
- let inputk = root.findByProps({ id: 'scroll.vertically?{"count":-1}' });
+ const inputj = root.findByProps({ id: 'scroll.vertically?{"count":1}' });
+ const inputk = root.findByProps({ id: 'scroll.vertically?{"count":-1}' });
expect(inputj.props.value).to.equal('j');
expect(inputk.props.value).to.equal('k');
});
it('renders blank value', () => {
- let root = ReactTestRenderer.create(<KeymapsForm />).root;
+ const root = ReactTestRenderer.create(<KeymapsForm />).root;
- let inputj = root.findByProps({ id: 'scroll.vertically?{"count":1}' });
- let inputk = root.findByProps({ id: 'scroll.vertically?{"count":-1}' });
+ const inputj = root.findByProps({ id: 'scroll.vertically?{"count":1}' });
+ const inputk = root.findByProps({ id: 'scroll.vertically?{"count":-1}' });
expect(inputj.props.value).to.be.empty;
expect(inputk.props.value).to.be.empty;
@@ -58,7 +58,7 @@ describe("settings/form/KeymapsForm", () => {
}} />, container);
});
- let input = document.getElementById('scroll.vertically?{"count":1}');
+ const input = document.getElementById('scroll.vertically?{"count":1}');
input.value = 'jjj';
ReactTestUtils.Simulate.change(input);
});