increasing test coverage to 20 percent
[aai/sparky-fe.git] / test / input / ToggleInput.test.js
diff --git a/test/input/ToggleInput.test.js b/test/input/ToggleInput.test.js
new file mode 100644 (file)
index 0000000..80f0345
--- /dev/null
@@ -0,0 +1,12 @@
+import React from 'react';
+import { mount } from 'enzyme';
+
+import ToggleInput from 'generic-components/input/ToggleInput.jsx';
+
+describe('ToggleInput Tests', () => {
+  it('render toggle input - visible', () => {
+    const toggle = mount( <ToggleInput /> );
+    expect(toggle).toHaveLength(1); // ensure the message bar is mounted
+    expect(toggle.find('input')).toHaveLength(1); // ensure the InlineMessage is mounted
+  });
+})