diff --git a/README.md b/README.md index 813ffb7..21a8589 100644 --- a/README.md +++ b/README.md @@ -28,8 +28,8 @@ In JS Where `opts` is an optional object with properties - * `id` Source's ID of the video - * `source` Source of the video (currently only accepts `brightcove`) + * `id` [`Number`] Source's ID of the video + * `source` [`String`] Source of the video (currently only accepts `brightcove`) * `optimumwidth` [`Number`] The optimum width of the video, used when there are multiple video renditions available to decide which to display (the smallest one that's at least as large as this width, if it exists) * `placeholder` [`Boolean`] Show just the poster image, load (and play) video on click diff --git a/demos/src/demo.js b/demos/src/demo.js index f15fa0a..c28b2c4 100644 --- a/demos/src/demo.js +++ b/demos/src/demo.js @@ -1,5 +1,5 @@ /* global console */ -import Video from './../../main.js'; +import './../../main.js'; document.addEventListener("DOMContentLoaded", function() { document.dispatchEvent(new CustomEvent('o.DOMContentLoaded')); diff --git a/test/ads.test.js b/test/ads.test.js index db3e5ac..91fa583 100644 --- a/test/ads.test.js +++ b/test/ads.test.js @@ -1,4 +1,4 @@ -/* global describe, xit, beforeEach, afterEach, expect, google */ +/* global describe, it, beforeEach, afterEach, google */ const Ads = require('./../src/ads'); const sinon = require('sinon/pkg/sinon'); diff --git a/test/video.test.js b/test/video.test.js index 4e4c7d5..520ce02 100644 --- a/test/video.test.js +++ b/test/video.test.js @@ -1,4 +1,4 @@ -/* global describe, xit, beforeEach, afterEach, expect, google */ +/* global describe, it, beforeEach, afterEach, before, after, should */ const Video = require('./../src/video'); const brightcoveResponse = require('./fixtures/brightcove.json'); const sinon = require('sinon/pkg/sinon'); @@ -73,7 +73,7 @@ describe('Video', () => { it('should create Video objects only once', () => { const videos = Video.init(); videos.length.should.eql(1); - const videos2 = new Video.init(); + const videos2 = Video.init(); videos2.length.should.eql(0); }); }); @@ -179,9 +179,9 @@ describe('Video', () => { }); it('should be able to suppress placeholder play button', () => { - const video = new Video(containerEl, { placeholder: true, playButton: false }); + new Video(containerEl, { placeholder: true, playButton: false }); - expect(containerEl.querySelector('.o-video__play-button')).to.be.null; + should.equal(containerEl.querySelector('.o-video__play-button'), null); }); });