diff --git a/test/players/YouTube.js b/test/players/YouTube.js
index 316c2dd5..5605d7f3 100644
--- a/test/players/YouTube.js
+++ b/test/players/YouTube.js
@@ -83,10 +83,13 @@ test('load() when ready', t => {
getSDK.restore()
})
-test('onStateChange() - play', async t => {
- const onPlay = () => t.pass()
- const instance = shallow().instance()
+test('onStateChange() - play', t => {
+ const called = {};
+ const onPlay = () => { called.onPlay = true }
+ const onBufferEnd = () => { called.onBufferEnd = true }
+ const instance = shallow().instance()
instance.onStateChange({ data: 'PLAYING' })
+ t.true(called.onPlay && called.onBufferEnd);
})
test('onStateChange() - pause', async t => {