Fakultas Ilmu Komputer UI

Commit 0b42ece2 authored by Yogi Perdana's avatar Yogi Perdana
Browse files

Make test for form and category options company register modal

parent 36edf174
Pipeline #25222 passed with stages
in 10 minutes and 42 seconds
......@@ -32,6 +32,19 @@ describe('CompanyRegisterModal', () => {
expect(companyRegister).to.exist;
});
it('renders form without problem', () => {
const companyRegister = ReactTestUtils.renderIntoDocument(
<CompanyRegisterModal />);
const registerForm = ReactTestUtils.scryRenderedDOMComponentsWithTag(companyRegister, 'Form');
expect(registerForm).to.exist;
});
it('renders category options without problem', () => {
const companyRegister = ReactTestUtils.renderIntoDocument(
<CompanyRegisterModal />);
expect(companyRegister.categoryOptions).to.exist;
});
it('handle password validation', () => {
const password = '3s24Aasd';
expect(validatePassword(password)).to.equal(true);
......
Markdown is supported
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