Fakultas Ilmu Komputer UI

Commit 79313f5f authored by NABILA FAKHIRAH YUSRONI's avatar NABILA FAKHIRAH YUSRONI
Browse files

Merge branch '1606875996-201' into 'master'

1606875996 201

See merge request !270
parents 6b8eafe3 7ffbb8da
Pipeline #26811 passed with stages
in 35 minutes and 11 seconds
......@@ -63,6 +63,7 @@ export default class EditProfile extends ProfileHandler {
refresh: 1,
loading: false,
linkedin_url: '',
self_description: '',
hackerrank_url: '',
student_gpa: 0.0,
student_toefl: 0,
......
......@@ -29,6 +29,7 @@ const studentUserVerified = {
updated: '2017-03-28T13:33:46.148248Z',
npm: 1406543593,
resume: null,
self_description: null,
phone_number: null,
sertifikat:'ada',
bookmarked_vacancies: [
......@@ -121,6 +122,7 @@ describe('ProfilePage', () => {
studentUserVerified.data.student.bookmarked_vacancies);
expect(profile.state.applied_vacancies).to.equal(
studentUserVerified.data.student.applied_vacancies);
expect(profile.state.self_description).to.equal(studentUserVerified.data.self_description);
});
})
......@@ -134,8 +136,11 @@ describe('ProfilePage', () => {
/>,
);
const phoneNumberNode = ReactTestUtils.scryRenderedDOMComponentsWithTag(profile, 'Input')[2];
profile.getProfile().then(()=> expect(
profile.state.phone_number).to.equal(phoneNumberNode.value));
const selfDescNode = ReactTestUtils.scryRenderedDOMComponentsWithTag(profile, 'Input')[4];
profile.getProfile().then(()=> {
expect(profile.state.phone_number).to.equal(phoneNumberNode.value);
expect(profile.state.self_description).to.equal(selfDescNode.value);
});
// profile.updateForm(true);
fetchMock.restore();
});
......
This diff is collapsed.
Supports Markdown
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