describe("when the field's value matches the pattern", () => {
    test("should return true", () => {
      const regex = "[0-9]{2,4}[a-z]+";
      const [form, field] = createAndGetFormAndInput("text", "343bde");
      expect(HTMLFormValidations.pattern(form, field, regex)).toBe(true);