We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When trying to add values to an array the value isn't mutated.
e.g. you would expect this test to pass:
it("updates an empty array", () => { const $ = new Collection<{ color: string; contents: string[]; animal: string; }>( [ { color: "green", contents: ["apple"], animal: "gorilla" }, { color: "red", contents: [], animal: "monkey" }, ], { primaryKey: "color" } ); $.get({ color: "red" }) .set({ contents: ["orange", "banana"], animal: "giraffe" }) .commit(); expect($.get({ color: "red" }).data).toEqual({ animal: "giraffe", color: "red", contents: ["orange", "banana"], }); });
However after mutation the value of contents is still an empty array.
contents
The text was updated successfully, but these errors were encountered:
🎉 This issue has been resolved in version 0.3.3 🎉
The release is available on:
Your semantic-release bot 📦🚀
Sorry, something went wrong.
alexberriman
Successfully merging a pull request may close this issue.
Description
When trying to add values to an array the value isn't mutated.
e.g. you would expect this test to pass:
However after mutation the value of
contents
is still an empty array.The text was updated successfully, but these errors were encountered: