Files
scorm-again/test/abstract_classes.spec.js
2019-11-14 16:07:42 -05:00

18 lines
514 B
JavaScript

import {describe, it} from 'mocha';
import {expect} from 'chai';
import BaseAPI from '../src/BaseAPI';
import {BaseCMI} from '../src/cmi/common';
describe('Abstract Class Tests', () => {
it('BaseAPI should not be instantiated', () => {
expect(
() => new BaseAPI(),
).to.throw('Cannot construct BaseAPI instances directly');
});
it('BaseCMI should not be instantiated', () => {
expect(
() => new BaseCMI(),
).to.throw('Cannot construct BaseCMI instances directly');
});
});