fix(Validators): fix Validators.required marking number zero as invalid
Closes #6617
This commit is contained in:
@ -35,6 +35,9 @@ export function main() {
|
||||
|
||||
it("should not error on a non-empty string",
|
||||
() => { expect(Validators.required(new Control("not empty"))).toEqual(null); });
|
||||
|
||||
it("should accept zero as valid",
|
||||
() => { expect(Validators.required(new Control(0))).toEqual(null); });
|
||||
});
|
||||
|
||||
describe("minLength", () => {
|
||||
|
Reference in New Issue
Block a user