Fakultas Ilmu Komputer UI

Commit 3218aab3 authored by emil farisan's avatar emil farisan
Browse files

added storage import

parent ebcd00ef
Pipeline #26736 failed with stages
in 5 minutes and 41 seconds
......@@ -2,6 +2,7 @@ import React from 'react';
import ReactTestUtils from 'react-dom/test-utils';
import fetchMock from 'fetch-mock';
import EditProfil from '../EditProfile';
import Storage from '../lib/Storage';
import { studentSession, response, response2 } from '../object/Response';
describe('EditProfil', () => {
......@@ -56,7 +57,7 @@ describe('EditProfil', () => {
<EditProfil route={{ own: true, data: studentSession }} user={{ data: studentSession }} params={{ id: 3 }} />);
profile.getProfile().then(()=> expect(profile.props.route.own).to.equal(true));
const userData = Storage.get('user-data');
const userData = Storage.getUserData();
expect(response2).to.equal(userData.student);
fetchMock.restore();
});
......
Markdown is supported
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