Fakultas Ilmu Komputer UI

Commit 00405457 authored by sirinbaisa's avatar sirinbaisa
Browse files

[#36][#140653601] Admin vacancy Test dan AdminVerification test

parent 99f4e825
import React from 'react';
import ReactTestUtils from 'react-addons-test-utils';
import AdminVacancy from '../../components/AdminVacancy';
describe('AdminVacancy', () => {
it('renders without problem', () => {
const adminVacancy = ReactTestUtils.renderIntoDocument(
<AdminVacancy />);
expect(adminVacancy).to.exist;
});
});
import React from 'react';
import ReactTestUtils from 'react-addons-test-utils';
import AdminVerificationModal from '../../components/AdminVerificationModal';
describe('AdminVerificationModal', () => {
it('renders without problem', () => {
const modalAdmin = ReactTestUtils.renderIntoDocument(
<AdminVerificationModal />);
expect(modalAdmin).to.exist;
});
it('close without problem', () => {
const modalAdmin = ReactTestUtils.renderIntoDocument(
<AdminVerificationModal />);
modalAdmin.handleClose();
expect(modalAdmin.state.modalOpen).to.equal(false);
});
it('open without problem', () => {
const modalAdmin = ReactTestUtils.renderIntoDocument(
<AdminVerificationModal />);
modalAdmin.handleOpen();
expect(modalAdmin.state.modalOpen).to.equal(true);
});
});
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