crane-cloud/frontend

View on GitHub
src/components/AdminPeriod/AdminPeriod.test.js

Summary

Maintainability
A
0 mins
Test Coverage
import React from "react";
import { shallow } from "enzyme";
import AdminPeriod from "./";

describe('Test the admin period component', () => {
    const onChange = jest.fn();
    const AdminPeriodComponent = shallow(<AdminPeriod onChange={onChange}/>)
    it('checks if the admin period component matches the snapshot', () => {
        expect(AdminPeriodComponent).toMatchSnapshot();
    });
})