From c60d0e7392fc708e961614d6b756a045de74f458 Mon Sep 17 00:00:00 2001
From: Shin'ya Ueoka <ueokande@i-beam.org>
Date: Tue, 30 Apr 2019 14:00:07 +0900
Subject: Rename .js/.jsx to .ts/.tsx

---
 test/settings/components/form/KeymapsForm.test.jsx | 64 ----------------------
 1 file changed, 64 deletions(-)
 delete mode 100644 test/settings/components/form/KeymapsForm.test.jsx

(limited to 'test/settings/components/form/KeymapsForm.test.jsx')

diff --git a/test/settings/components/form/KeymapsForm.test.jsx b/test/settings/components/form/KeymapsForm.test.jsx
deleted file mode 100644
index 6ac57c9..0000000
--- a/test/settings/components/form/KeymapsForm.test.jsx
+++ /dev/null
@@ -1,64 +0,0 @@
-import React from 'react';
-import ReactDOM from 'react-dom';
-import ReactTestRenderer from 'react-test-renderer';
-import ReactTestUtils from 'react-dom/test-utils';
-import KeymapsForm from 'settings/components/form/KeymapsForm'
-
-describe("settings/form/KeymapsForm", () => {
-  describe('render', () => {
-    it('renders keymap fields', () => {
-      let root = ReactTestRenderer.create(<KeymapsForm value={{
-        '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}' });
-
-      expect(inputj.props.value).to.equal('j');
-      expect(inputk.props.value).to.equal('k');
-    });
-
-    it('renders blank value', () => {
-      let root = ReactTestRenderer.create(<KeymapsForm />).root;
-
-      let inputj = root.findByProps({ id: 'scroll.vertically?{"count":1}' });
-      let inputk = root.findByProps({ id: 'scroll.vertically?{"count":-1}' });
-
-      expect(inputj.props.value).to.be.empty;
-      expect(inputk.props.value).to.be.empty;
-    });
-  });
-
-  describe('onChange event', () => {
-    let container;
-
-    beforeEach(() => {
-      container = document.createElement('div');
-      document.body.appendChild(container);
-    });
-
-    afterEach(() => {
-      document.body.removeChild(container);
-      container = null;
-    });
-
-    it('invokes onChange event on edit', (done) => {
-      ReactTestUtils.act(() => {
-        ReactDOM.render(<KeymapsForm
-          value={{
-            'scroll.vertically?{"count":1}': 'j',
-            'scroll.vertically?{"count":-1}': 'k',
-          }}
-          onChange={value => {
-            expect(value['scroll.vertically?{"count":1}']).to.equal('jjj');
-            done();
-          }} />, container);
-      });
-
-      let input = document.getElementById('scroll.vertically?{"count":1}');
-      input.value = 'jjj';
-      ReactTestUtils.Simulate.change(input);
-    });
-  });
-});
-- 
cgit v1.2.3

