mirror of
https://github.com/fleetdm/fleet
synced 2026-05-14 20:48:35 +00:00
- Move from Mocha to Jest for JS testing (Jest seems to have better support for 'watching' tests and a more active community these days). - Codemod existing tests to Jest syntax (using https://github.com/skovhus/jest-codemods) - Fix some errors in tests that were previously hidden. - Update Babel.
14 lines
392 B
JavaScript
14 lines
392 B
JavaScript
import React from 'react';
|
|
import { mount } from 'enzyme';
|
|
|
|
import ScheduleQuerySidePanel from './ScheduleQuerySidePanel';
|
|
|
|
describe('ScheduleQuerySidePanel - component', () => {
|
|
const component = mount(<ScheduleQuerySidePanel />);
|
|
|
|
it('renders SearchPackQuery', () => {
|
|
const scheduleQuery = component.find('SearchPackQuery');
|
|
|
|
expect(scheduleQuery.length).toEqual(1);
|
|
});
|
|
});
|