summaryrefslogtreecommitdiffstats
path: root/test/input/ToggleInput.test.js
blob: 80f034592d2a9733919597e0d6f4d900fb104f37 (plain)
1
2
3
4
5
6
7
8
9
10
11
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
  });
})