Skip to content

Commit

Permalink
render test written for legend component >relates #7
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Dupree committed Oct 19, 2018
1 parent cf73154 commit a55f54b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Landing.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Landing from './Landing';

afterAll(cleanup);

describe('Header', () => {
describe('Landing', () => {
it('renders without crashing', () => {
render(<Landing />);
});
Expand Down
11 changes: 11 additions & 0 deletions src/components/Legend.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const { render, cleanup } = require('react-testing-library');
import React from 'react';
import Legend from './Legend';

afterAll(cleanup);

describe('Legend', () => {
it('renders without crashing', () => {
render(<Legend />);
});
});
2 changes: 1 addition & 1 deletion src/components/PostcodeForm.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import PostcodeForm from './PostcodeForm';

afterAll(cleanup);

describe('Header', () => {
describe('PostcodeForm', () => {
let searchInput = '';
it('renders without crashing', () => {
render(<PostcodeForm
Expand Down

0 comments on commit a55f54b

Please sign in to comment.