apc-youtube
Version:
Library for converting different forms of Youtube URL for embedding into an Iframe.
16 lines (13 loc) • 547 B
JavaScript
const chai = require('chai')
chai.use(require('sinon-chai'))
const expect = chai.expect
const Base = require('../../../src/strategies/base_provider')
describe('Base class functionality', () => {
it('Base Class prevents instantiation', () => {
let fcn = function () {
const instantiatedBaseClass = new Base()
expect(instantiatedBaseClass).to.an('object')
}
expect(fcn).to.throw(Error, 'Cannot construct baseProvider instances directly - inherrit from this class and add SupportedHost and getoEmbedURL methods.')
})
})