18 lines
514 B
JavaScript
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');
|
|
});
|
|
});
|