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
bfefc629
Commit
bfefc629
authored
Dec 06, 2019
by
emil farisan
Browse files
fix the testing errors
parent
3218aab3
Pipeline
#26745
passed with stages
in 14 minutes and 21 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
assets/js/__test__/EditProfile-test.jsx
View file @
bfefc629
...
@@ -57,8 +57,8 @@ describe('EditProfil', () => {
...
@@ -57,8 +57,8 @@ 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
(
userData
.
student
)
.
to
.
equal
(
null
)
;
fetchMock
.
restore
();
fetchMock
.
restore
();
});
});
...
@@ -77,7 +77,7 @@ describe('EditProfil', () => {
...
@@ -77,7 +77,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
}
}
/>);
const
birthDate
=
'
1996-06-30
'
const
birthDate
=
'
1996-06-30
'
parsedDate
=
profile
.
parseIndonesianDateFormat
(
birthDate
)
const
parsedDate
=
profile
.
parseIndonesianDateFormat
(
birthDate
)
expect
(
parsedDate
).
to
.
equal
(
'
30 Juni 1996
'
)
expect
(
parsedDate
).
to
.
equal
(
'
30 Juni 1996
'
)
fetchMock
.
restore
();
fetchMock
.
restore
();
});
});
...
...
Write
Preview
Markdown
is supported
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