Skip to content

Commit ab24d08

Browse files
committed
Remove brackets from single param arrow functions
1 parent 8b6bc86 commit ab24d08

1 file changed

Lines changed: 31 additions & 31 deletions

File tree

test/karma/ReactPlayer.js

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -64,53 +64,53 @@ describe('ReactPlayer', () => {
6464
}
6565

6666
describe('YouTube', () => {
67-
it('fires onStart', (done) => testStart(TEST_YOUTUBE_URL, done))
68-
it('fires onPlay', (done) => testPlay(TEST_YOUTUBE_URL, done))
69-
it('fires onPause', (done) => testPause(TEST_YOUTUBE_URL, done))
70-
it('fires onDuration', (done) => testDuration(TEST_YOUTUBE_URL, done))
71-
it('fires onDuration with delayed load', (done) => testDurationDelayed(TEST_YOUTUBE_URL, done))
72-
it('fires onError', (done) => testError(TEST_YOUTUBE_ERROR, done))
73-
74-
it('starts at a specified time', (done) => {
75-
const onProgress = (state) => {
67+
it('fires onStart', done => testStart(TEST_YOUTUBE_URL, done))
68+
it('fires onPlay', done => testPlay(TEST_YOUTUBE_URL, done))
69+
it('fires onPause', done => testPause(TEST_YOUTUBE_URL, done))
70+
it('fires onDuration', done => testDuration(TEST_YOUTUBE_URL, done))
71+
it('fires onDuration with delayed load', done => testDurationDelayed(TEST_YOUTUBE_URL, done))
72+
it('fires onError', done => testError(TEST_YOUTUBE_ERROR, done))
73+
74+
it('starts at a specified time', done => {
75+
const onProgress = state => {
7676
if (state.played > 0.9) done()
7777
}
7878
render(<ReactPlayer url={TEST_YOUTUBE_URL + '?start=22m10s'} playing onProgress={onProgress} />, div)
7979
})
8080
})
8181

8282
describe('SoundCloud', () => {
83-
it('fires onStart', (done) => testStart(TEST_SOUNDCLOUD_URL, done))
84-
it('fires onPlay', (done) => testPlay(TEST_SOUNDCLOUD_URL, done))
85-
it.skip('fires onPause', (done) => testPause(TEST_SOUNDCLOUD_URL, done))
86-
it('fires onDuration', (done) => testDuration(TEST_SOUNDCLOUD_URL, done))
87-
it('fires onDuration with delayed load', (done) => testDurationDelayed(TEST_SOUNDCLOUD_URL, done))
88-
it('fires onError', (done) => testError(TEST_SOUNDCLOUD_ERROR, done))
83+
it('fires onStart', done => testStart(TEST_SOUNDCLOUD_URL, done))
84+
it('fires onPlay', done => testPlay(TEST_SOUNDCLOUD_URL, done))
85+
it.skip('fires onPause', done => testPause(TEST_SOUNDCLOUD_URL, done))
86+
it('fires onDuration', done => testDuration(TEST_SOUNDCLOUD_URL, done))
87+
it('fires onDuration with delayed load', done => testDurationDelayed(TEST_SOUNDCLOUD_URL, done))
88+
it('fires onError', done => testError(TEST_SOUNDCLOUD_ERROR, done))
8989
})
9090

9191
describe('Streamable', () => {
92-
it('fires onStart', (done) => testStart(TEST_STREAMABLE_URL, done))
93-
it('fires onPlay', (done) => testPlay(TEST_STREAMABLE_URL, done))
94-
it.skip('fires onPause', (done) => testPause(TEST_STREAMABLE_URL, done))
95-
it('fires onDuration', (done) => testDuration(TEST_STREAMABLE_URL, done))
96-
it('fires onDuration with delayed load', (done) => testDurationDelayed(TEST_STREAMABLE_URL, done))
92+
it('fires onStart', done => testStart(TEST_STREAMABLE_URL, done))
93+
it('fires onPlay', done => testPlay(TEST_STREAMABLE_URL, done))
94+
it.skip('fires onPause', done => testPause(TEST_STREAMABLE_URL, done))
95+
it('fires onDuration', done => testDuration(TEST_STREAMABLE_URL, done))
96+
it('fires onDuration with delayed load', done => testDurationDelayed(TEST_STREAMABLE_URL, done))
9797
})
9898

9999
describe('Vimeo', () => {
100-
it('fires onStart', (done) => testStart(TEST_VIMEO_URL, done))
101-
it('fires onPlay', (done) => testPlay(TEST_VIMEO_URL, done))
102-
it.skip('fires onPause', (done) => testPause(TEST_VIMEO_URL, done))
103-
it('fires onDuration', (done) => testDuration(TEST_VIMEO_URL, done))
104-
it('fires onDuration with delayed load', (done) => testDurationDelayed(TEST_VIMEO_URL, done))
100+
it('fires onStart', done => testStart(TEST_VIMEO_URL, done))
101+
it('fires onPlay', done => testPlay(TEST_VIMEO_URL, done))
102+
it.skip('fires onPause', done => testPause(TEST_VIMEO_URL, done))
103+
it('fires onDuration', done => testDuration(TEST_VIMEO_URL, done))
104+
it('fires onDuration with delayed load', done => testDurationDelayed(TEST_VIMEO_URL, done))
105105
})
106106

107107
describe('FilePlayer', () => {
108-
it('fires onStart', (done) => testStart(TEST_FILE_URL, done))
109-
it('fires onPlay', (done) => testPlay(TEST_FILE_URL, done))
110-
it.skip('fires onPause', (done) => testPause(TEST_FILE_URL, done))
111-
it('fires onDuration', (done) => testDuration(TEST_FILE_URL, done))
112-
it('fires onDuration with delayed load', (done) => testDurationDelayed(TEST_FILE_URL, done))
113-
it.skip('fires onError', (done) => testError(TEST_FILE_ERROR, done))
108+
it('fires onStart', done => testStart(TEST_FILE_URL, done))
109+
it('fires onPlay', done => testPlay(TEST_FILE_URL, done))
110+
it.skip('fires onPause', done => testPause(TEST_FILE_URL, done))
111+
it('fires onDuration', done => testDuration(TEST_FILE_URL, done))
112+
it('fires onDuration with delayed load', done => testDurationDelayed(TEST_FILE_URL, done))
113+
it.skip('fires onError', done => testError(TEST_FILE_ERROR, done))
114114
})
115115

116116
describe('Switching', () => {

0 commit comments

Comments
 (0)