Fakultas Ilmu Komputer UI

Commit f9a7be2d authored by M. Reza Qorib's avatar M. Reza Qorib
Browse files

[#140654507] #13 add VacancyList test

parent b18f4017
/* eslint-disable no-unused-expressions */
import React from 'react';
import ReactTestUtils from 'react-addons-test-utils';
import VacancyList from '../../components/VacancyList';
import ModalPendaftaran from '../../components/ModalPendaftaran';
describe('LoginForm', () => {
it('created without problem', () => {
const vacancyList = new VacancyList();
expect(vacancyList).to.be.an.instanceof(VacancyList);
});
it('renders without problem', () => {
const vacancyList = ReactTestUtils.renderIntoDocument(
<VacancyList header="header" content="content" buttonTitle="submit" />);
expect(vacancyList).to.exist;
React.Children.forEach(this.props.children, (child) => {
expect(child).to.be.an.instanceof(ModalPendaftaran);
});
});
});
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment