Replaced inaccurate comments

This commit is contained in:
Brian Vaughn
2019-02-05 18:39:25 +00:00
parent ee909e5a67
commit a0db3e7f17
2 changed files with 4 additions and 4 deletions

View File

@@ -73,7 +73,7 @@ afterEach(() => {
});
it('can render and update a counter', () => {
// Test first render and componentDidMount
// Test first render and effect
act(() => {
ReactDOM.render(<Counter />, container);
});
@@ -82,7 +82,7 @@ it('can render and update a counter', () => {
expect(label.textContent).toBe('You clicked 0 times');
expect(document.title).toBe('You clicked 0 times');
// Test second render and componentDidUpdate
// Test second render and effect
act(() => {
button.dispatchEvent(new MouseEvent('click', {bubbles: true}));
});

View File

@@ -153,7 +153,7 @@ afterEach(() => {
});
it('can render and update a counter', () => {
// Test first render and componentDidMount
// Test first render and effect
act(() => {
ReactDOM.render(<Counter />, container);
});
@@ -162,7 +162,7 @@ it('can render and update a counter', () => {
expect(label.textContent).toBe('You clicked 0 times');
expect(document.title).toBe('You clicked 0 times');
// Test second render and componentDidUpdate
// Test second render and effect
act(() => {
button.dispatchEvent(new MouseEvent('click', {bubbles: true}));
});