Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects

1606918566 123

Merged Hadlina Rahmadinni requested to merge 1606918566-123 into master
9 files
+ 43
32
Compare changes
  • Side-by-side
  • Inline
Files
9
@@ -26,6 +26,7 @@ const companyUserVerified = {
address: 'Jl. Kebayoran Baru nomor 13, Jakarta Barat',
category: 'Belum ada kategori perusahaan',
website: 'Belum ada link website',
size: 'Jumlah karyawan belum dimasukan',
linkedin_url: 'Belum ada LinkedIn URL',
},
supervisor: null,
@@ -56,6 +57,7 @@ describe('CompanyProfile', () => {
expect(profile.state.address).to.equal(companyUserVerified.data.company.address);
expect(profile.state.category).to.equal(companyUserVerified.data.company.category);
expect(profile.state.description).to.equal(companyUserVerified.data.company.description);
expect(profile.state.size).to.equal(companyUserVerified.data.company.size);
expect(profile.state.website).to.equal(companyUserVerified.data.company.website);
expect(profile.state.logo).to.equal(companyUserVerified.data.company.logo);
expect(profile.state.linkedin_url).to.equal(companyUserVerified.data.company.linkedin_url);
@@ -65,7 +67,7 @@ describe('CompanyProfile', () => {
it('submit edit form of verified company without problem', () => {
const profile = ReactTestUtils.renderIntoDocument(
<CompanyProfile user={companyUserVerified} />);
profile.state.form = {name:'Restopedia', address:'Bulan', description:'Martabak Tilaar', website:'www.uenak.com', linkedin_url:'https://www.linkedin.com/in/bob/'};
profile.state.form = {name:'Restopedia', address:'Bulan', description:'Martabak Tilaar', website:'www.uenak.com', linkedin_url:'https://www.linkedin.com/in/bob/', size:'1000'};
const submitButton = ReactTestUtils.scryRenderedDOMComponentsWithTag(profile, 'Input')[1];
ReactTestUtils.Simulate.click(submitButton);
Loading