More tests and fixes
This commit is contained in:
17
test/abstract_classes.spec.js
Normal file
17
test/abstract_classes.spec.js
Normal file
@@ -0,0 +1,17 @@
|
||||
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');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user