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
I suspect that the record rule resets the value. this test fails for me:
import Validator from "fastest-validator"; describe("record rule", () => { it("should not mutate valid value", async () => { expect.hasAssertions(); const validate = new Validator().compile({ foo: { type: "record", key: "string", value: "string", }, }); const value = { foo: { bar: "baz" } }; expect(validate(value)).toBe(true); expect(value).toStrictEqual({ foo: { bar: "baz" } }); }); });
with error
Error: expect(received).toStrictEqual(expected) // deep equality - Expected - 3 + Received + 1 Object { - "foo": Object { - "bar": "baz", - }, + "foo": undefined, }
The text was updated successfully, but these errors were encountered:
@FFKL could you check it plz?
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
I suspect that the record rule resets the value.
this test fails for me:
with error
The text was updated successfully, but these errors were encountered: