Skip to content

Commit

Permalink
Add placeholder UserRegistration component with simple render test
Browse files Browse the repository at this point in the history
  • Loading branch information
hotblac committed Jul 26, 2018
1 parent a951276 commit 2fa7b7a
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 14 deletions.
30 changes: 16 additions & 14 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
import React, { Component } from 'react';
import React, {Component} from 'react';
import logo from './logo.svg';
import './App.css';
import {UserRegistration} from "./UserRegistration";

class App extends Component {
render() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h1 className="App-title">Welcome to React</h1>
</header>
<p className="App-intro">
To get started, edit <code>src/App.js</code> and save to reload.
</p>
</div>
);
}
render() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo"/>
<h1 className="App-title">Welcome to React</h1>
</header>
<p className="App-intro">
To get started, edit <code>src/App.js</code> and save to reload.
</p>
<UserRegistration/>
</div>
);
}
}

export default App;
9 changes: 9 additions & 0 deletions src/UserRegistration.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React, { Component } from 'react';

export class UserRegistration extends Component {
render() {
return (
<div>TODO</div>
);
}
}
10 changes: 10 additions & 0 deletions src/UserRegistration.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react';
import { shallow } from 'enzyme';
import {UserRegistration} from "./UserRegistration";

describe ('<UserRegistration/>', () => {
it('renders', () => {
const wrapper = shallow(<UserRegistration />);
expect(wrapper).toBeDefined();
});
});

0 comments on commit 2fa7b7a

Please sign in to comment.