aboutsummaryrefslogtreecommitdiff
path: root/test/settings/components/form/KeymapsForm.test.tsx
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2019-12-22 10:28:14 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2019-12-22 10:48:39 +0900
commit029d5365e7d74e87375fccb8db097b7c2df3f7f4 (patch)
tree6a24c719da9c60461c7e2fe120b0d42af9e580f2 /test/settings/components/form/KeymapsForm.test.tsx
parentd72012529bcd820598fa64e1aa20dab1c16acaa5 (diff)
npm run lint:fix
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);
});