Skip to content

Commit f69536c

Browse files
committed
2 parents 093daa3 + 53b932a commit f69536c

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

docker-compose.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,5 @@ services:
55
container_name: reacttt-test-lint
66
volumes:
77
- .:/usr/src/app
8-
- node_modules:/usr/src/app/node_modules
8+
- /usr/src/app/node_modules
99
command: bash -c "npm run lint && npm test"
10-
volumes:
11-
node_modules:

src/app/__tests__/action.test.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ describe('unit testing for Action.jsx', () => {
5656
});
5757

5858
test('should invoke dispatch method when clicked', () => {
59-
wrapper.find('.jump-button').simulate('click', { stopPropagation() { } });
59+
wrapper.find('.jump-button').simulate('click', { stopPropagation() {} });
6060
expect(props.dispatch).toHaveBeenCalled();
6161
});
6262

6363
test('dispatch should send a changeSlider action', () => {
64-
wrapper.find('.jump-button').simulate('click', { stopPropagation() { } });
64+
wrapper.find('.jump-button').simulate('click', { stopPropagation() {} });
6565
expect(props.dispatch.mock.calls[0][0]).toEqual(changeSlider(props.index));
6666
});
6767
});

0 commit comments

Comments
 (0)