Fakultas Ilmu Komputer UI
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kape
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Fasilkom UI Open Source Software
Kape
Commits
00405457
Commit
00405457
authored
8 years ago
by
sirinbaisa
Browse files
Options
Downloads
Patches
Plain Diff
[#36][#140653601] Admin vacancy Test dan AdminVerification test
parent
99f4e825
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
assets/js/__test__/components/AdminVacancy-test.jsx
+12
-0
12 additions, 0 deletions
assets/js/__test__/components/AdminVacancy-test.jsx
assets/js/__test__/components/AdminVerificationModal-test.jsx
+28
-0
28 additions, 0 deletions
...ts/js/__test__/components/AdminVerificationModal-test.jsx
with
40 additions
and
0 deletions
assets/js/__test__/components/AdminVacancy-test.jsx
0 → 100644
+
12
−
0
View file @
00405457
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
;
});
});
This diff is collapsed.
Click to expand it.
assets/js/__test__/components/AdminVerificationModal-test.jsx
0 → 100644
+
28
−
0
View file @
00405457
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
);
});
});
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment