UNPKG

reactive-observables

Version:

Framework-agnostic observables and computed properties similar to Knockout and Vue, built on RxJS

15 lines (13 loc) 520 B
import * as chai from "chai"; import { trackableManager } from "../src/trackable-manager"; import { TrackedComputedSubject } from "../src/tracked-computed-subject"; describe("TrackableManager", () => { it("Should throw if listener stack is malformed", () => { chai.expect(() => { new TrackedComputedSubject(() => { // This should never happen and should throw error; (trackableManager as any).listenStack.pop(); }); }).to.throw(); }); });