Commit 3b0a1b7e by Prem Sichanugrist

Fix test variable leakage

parent 3f7dc688
...@@ -90,7 +90,7 @@ describe 'VideoPlayer', -> ...@@ -90,7 +90,7 @@ describe 'VideoPlayer', ->
describe 'when not on a touch based device', -> describe 'when not on a touch based device', ->
beforeEach -> beforeEach ->
window.onTouchBasedDevice = -> false spyOn(window, 'onTouchBasedDevice').andReturn false
spyOn @player, 'play' spyOn @player, 'play'
@player.onReady() @player.onReady()
...@@ -99,7 +99,7 @@ describe 'VideoPlayer', -> ...@@ -99,7 +99,7 @@ describe 'VideoPlayer', ->
describe 'when on a touch based device', -> describe 'when on a touch based device', ->
beforeEach -> beforeEach ->
window.onTouchBasedDevice = -> true spyOn(window, 'onTouchBasedDevice').andReturn true
spyOn @player, 'play' spyOn @player, 'play'
@player.onReady() @player.onReady()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment