damn-utils
Version:
Collection of some damn utilities
13 lines (11 loc) • 380 B
JavaScript
;
describe.only('classes:singleton-enforcer', function () {
let subClass = null;
before(function() {
subClass = class SubSingletonEnforcer extends this.lib.classes.SingletonEnforcer {
};
});
it('should throw an error if try to get instance with new', function () {
(() =>new subClass()).should.throw();
});
});