Skip to content

Commit

Permalink
added karma tests for host key
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerben van Dijk committed Jun 6, 2019
1 parent 5c3f104 commit 4570923
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/player.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ describe('YouTubePlayer', () => {
assert.equal(vm.videoId, 'videoId')
assert.equal(vm.playerWidth, '640')
assert.equal(vm.playerHeight, '360')
assert.equal(vm.host, 'https://www.youtube.com')
})
})

Expand All @@ -66,11 +67,12 @@ describe('YouTubePlayer', () => {
start: 30,
autoplay: 1
}
const host = 'https://www.youtube-nocookie.com'

const vm = new Vue({
mixins: [YouTubePlayer],
propsData: {
videoId, playerHeight, playerWidth, playerVars
videoId, playerHeight, playerWidth, playerVars, host
}
})
vm.$mount()
Expand All @@ -79,6 +81,7 @@ describe('YouTubePlayer', () => {
assert.equal(vm.playerWidth, playerWidth)
assert.equal(vm.playerHeight, playerHeight)
assert.deepEqual(vm.playerVars, playerVars)
assert.equal(vm.host, host)
})
})
})
Expand Down

0 comments on commit 4570923

Please sign in to comment.