Skip to content

Commit 53b932a

Browse files
authored
Merge pull request #83 from oslabs-beta/josh/travis
added travis.yml
2 parents cd16585 + e0b9b94 commit 53b932a

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-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/.travis.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
services:
2+
- docker
3+
script:
4+
- npm run docker-check
5+
deploy:
6+
provider: script
7+
skip_cleanup: true
8+
on:
9+
- master
10+
- dev

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)