Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
PMPL
Class Project
Kape
Commits
ebcd00ef
Commit
ebcd00ef
authored
Dec 06, 2019
by
emil farisan
Browse files
fix errors on test case
parent
0a936882
Pipeline
#26735
failed with stages
in 6 minutes and 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
assets/js/__test__/EditProfile-test.jsx
View file @
ebcd00ef
...
@@ -56,7 +56,7 @@ describe('EditProfil', () => {
...
@@ -56,7 +56,7 @@ describe('EditProfil', () => {
<
EditProfil
route
=
{
{
own
:
true
,
data
:
studentSession
}
}
user
=
{
{
data
:
studentSession
}
}
params
=
{
{
id
:
3
}
}
/>);
<
EditProfil
route
=
{
{
own
:
true
,
data
:
studentSession
}
}
user
=
{
{
data
:
studentSession
}
}
params
=
{
{
id
:
3
}
}
/>);
profile
.
getProfile
().
then
(()
=>
expect
(
profile
.
props
.
route
.
own
).
to
.
equal
(
true
));
profile
.
getProfile
().
then
(()
=>
expect
(
profile
.
props
.
route
.
own
).
to
.
equal
(
true
));
const
userData
=
Storage
.
get
U
ser
D
ata
(
);
const
userData
=
Storage
.
get
(
'
u
ser
-d
ata
'
);
expect
(
response2
).
to
.
equal
(
userData
.
student
);
expect
(
response2
).
to
.
equal
(
userData
.
student
);
fetchMock
.
restore
();
fetchMock
.
restore
();
});
});
...
@@ -75,7 +75,7 @@ describe('EditProfil', () => {
...
@@ -75,7 +75,7 @@ describe('EditProfil', () => {
const
profile
=
ReactTestUtils
.
renderIntoDocument
(
const
profile
=
ReactTestUtils
.
renderIntoDocument
(
<
EditProfil
route
=
{
{
own
:
true
,
data
:
studentSession
}
}
user
=
{
{
data
:
studentSession
}
}
params
=
{
{
id
:
3
}
}
/>);
<
EditProfil
route
=
{
{
own
:
true
,
data
:
studentSession
}
}
user
=
{
{
data
:
studentSession
}
}
params
=
{
{
id
:
3
}
}
/>);
birthDate
=
'
1996-06-30
'
const
birthDate
=
'
1996-06-30
'
parsedDate
=
profile
.
parseIndonesianDateFormat
(
birthDate
)
parsedDate
=
profile
.
parseIndonesianDateFormat
(
birthDate
)
expect
(
parsedDate
).
to
.
equal
(
'
30 Juni 1996
'
)
expect
(
parsedDate
).
to
.
equal
(
'
30 Juni 1996
'
)
fetchMock
.
restore
();
fetchMock
.
restore
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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