Fakultas Ilmu Komputer UI

Commit f42cc738 authored by RYAN NAUFAL PIOSCHA's avatar RYAN NAUFAL PIOSCHA
Browse files

1606884716 177

parent e1112196
File mode changed from 100755 to 100644
......@@ -5,7 +5,7 @@ import fetchMock from 'fetch-mock';
import VacancyPage from '../VacancyPage';
import ProfilePage from '../ProfilePage';
import TopMenu from '../components/TopMenu';
import { studentUser, companyUser } from '../object/Response';
import { studentUser, companyUser, supervisorUser } from '../object/Response';
describe('VacancyPage', () => {
fetchMock.get('*', { data: 'value' });
......@@ -35,6 +35,12 @@ describe('VacancyPage', () => {
expect(vacancyPage).to.exist;
});
it('renders for supervisor without problem', () => {
const vacancyPage = ReactTestUtils.renderIntoDocument(
<VacancyPage user={supervisorUser} />);
expect(vacancyPage).to.exist;
});
it('renders without problem for error case', () => {
const vacancyPage = ReactTestUtils.renderIntoDocument(
<VacancyPage user={errorUser} />);
......
......@@ -175,7 +175,7 @@ describe('VacancyList', () => {
benefits: 'keuntungan',
requirements: 'requirements',
responsibilities: 'This is a responsibility.',
salary: '1',
salary: '2',
close_time: '2017-04-30T03:39:11Z',
created: '2017-04-26T03:39:39.916758Z',
updated: '2017-04-26T03:41:07.157634Z',
......@@ -211,7 +211,7 @@ describe('VacancyList', () => {
benefits: 'keuntungan',
requirements: 'requirements',
responsibilities: 'This is a responsibility.',
salary: '1',
salary: '3',
close_time: '2017-04-30T03:39:11Z',
created: '2017-04-26T03:39:39.916758Z',
updated: '2017-04-26T03:41:07.157634Z',
......@@ -247,7 +247,7 @@ describe('VacancyList', () => {
benefits: 'keuntungan',
requirements: 'requirements',
responsibilities: 'This is a responsibility.',
salary: '1',
salary: '4',
close_time: '2017-04-30T03:39:11Z',
created: '2017-04-26T03:39:39.916758Z',
updated: '2017-04-26T03:41:07.157634Z',
......@@ -319,7 +319,7 @@ describe('VacancyList', () => {
total_accepted_applicants: 0,
working_period: 'Juli-Agustus',
}, {
salary: '1',
salary: '2',
close_time: '2019-03-28T05:55:42Z',
company: {
address: 'kebayoran baru',
......
File mode changed from 100755 to 100644
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