Fakultas Ilmu Komputer UI
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
PMPL
Class Project
Kape
Commits
0b42ece2
Commit
0b42ece2
authored
Nov 15, 2019
by
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
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
assets/js/__test__/components/CompanyRegisterModal-test.jsx
View file @
0b42ece2
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment