Skip to content

Commit

Permalink
fix(component): base change to attempt release
Browse files Browse the repository at this point in the history
  • Loading branch information
orunnals committed Aug 13, 2020
1 parent dca45d3 commit 3971276
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default class extends Component {
render() {
return (
<div>
<h2>Welcome to React components</h2>
<h2>Welcome to React component</h2>
</div>
);
}
Expand Down
34 changes: 17 additions & 17 deletions tests/index.test.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
import expect from 'expect'
import React from 'react'
import {render, unmountComponentAtNode} from 'react-dom'
import expect from 'expect';
import React from 'react';
import { render, unmountComponentAtNode } from 'react-dom';

import Component from 'src/'
import Component from 'src/';

describe('Component', () => {
let node
let node;

beforeEach(() => {
node = document.createElement('div')
})
beforeEach(() => {
node = document.createElement('div');
});

afterEach(() => {
unmountComponentAtNode(node)
})
afterEach(() => {
unmountComponentAtNode(node);
});

it('displays a welcome message', () => {
render(<Component/>, node, () => {
expect(node.innerHTML).toContain('Welcome to React components')
})
})
})
it('displays a welcome message', () => {
render(<Component />, node, () => {
expect(node.innerHTML).toContain('Welcome to React component');
});
});
});

0 comments on commit 3971276

Please sign in to comment.