Fakultas Ilmu Komputer UI

Commit b18f4017 authored by M. Reza Qorib's avatar M. Reza Qorib
Browse files

[#140382397] #10 fix some typos and refactor test directory struture

parent cec72185
import React from 'react';
import { Grid, Segment } from 'semantic-ui-react';
import FormLogin from './components/LoginForm';
// import SSOLogin from './components/SSOLogin';
import LoginForm from './components/LoginForm';
export default class Login extends React.Component {
......@@ -27,12 +26,12 @@ export default class Login extends React.Component {
<Grid.Column>
<Segment basic>
<LoginForm url="/login/sso" imgSrc="login.png" imgSize="small" />
<LoginForm url="/login/sso" imgSrc="UI.png" imgSize="tiny" />
{this.props.children}
</Segment>
</Grid.Column>
</Grid>
)
)
}
/* eslint-disable no-unused-expressions */
import React from 'react';
import ReactTestUtils from 'react-addons-test-utils';
import LoginForm from '../components/LoginForm';
import LoginForm from '../../components/LoginForm';
describe('LoginForm', () => {
it('created without problem', () => {
......
/* eslint-disable no-unused-expressions */
import React from 'react';
import ReactTestUtils from 'react-addons-test-utils';
import Lowongan from '../components/Lowongan';
import Lowongan from '../../components/Lowongan';
it('renders without problem', () => {
let lowongan = ReactTestUtils.renderIntoDocument(
......
/* eslint-disable no-unused-expressions */
import React from 'react';
import ReactTestUtils from 'react-addons-test-utils';
import ModalPendaftaran from '../components/ModalPendaftaran';
import ModalPendaftaran from '../../components/ModalPendaftaran';
it('renders without problem', () => {
const lowongan = ReactTestUtils.renderIntoDocument(
......
......@@ -17,7 +17,7 @@ export default class ModalPendaftaran extends React.Component {
React.PropTypes.node,
React.PropTypes.string,
]).isRequired,
}
};
state = { modalOpen: false };
......
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