dist-javascript-algorithms-and-data-structures
Version:
Algorithms and data-structures implemented on JavaScript
16 lines (12 loc) • 418 B
JavaScript
;
var _Heap = _interopRequireDefault(require("../Heap"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
describe('Heap', () => {
it('should not allow to create instance of the Heap directly', () => {
const instantiateHeap = () => {
const heap = new _Heap.default();
heap.add(5);
};
expect(instantiateHeap).toThrow();
});
});