More tests and fixes

This commit is contained in:
Jonathan Putney
2019-11-14 16:07:42 -05:00
parent caa5977a4b
commit 929176fb3e
14 changed files with 385 additions and 238 deletions

View 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');
});
});