Open YousefED opened 3 years ago
The following scenario doesn't work (explicitly deleting items by modifying array.length)
it("should observe explicit array length changes", () => { let dummy; const list = observable(["Hello", "World"]); observe(() => { dummy = list[0]; }); expect(dummy).to.equal("Hello"); list.length = 0; expect(dummy).to.equal(undefined); });
The following scenario doesn't work (explicitly deleting items by modifying array.length)