diff --git a/src/app/__tests__/MaskHour.spec.tsx b/src/app/__tests__/MaskHour.spec.tsx index a3b5bc5a..b5dd0e11 100644 --- a/src/app/__tests__/MaskHour.spec.tsx +++ b/src/app/__tests__/MaskHour.spec.tsx @@ -129,4 +129,23 @@ describe("MaskInput", () => { expect(mockInputMaskChange).toHaveBeenCalledWith("1"); }); + test("permite uma sequência correta sem alterações", () => { + const { getByTestId } = render( + + ); + + const input = getByTestId("mask-input"); + + // Simula a mudança do texto para "12:34" + fireEvent.changeText(input, "1234"); + + // Verifica se inputMaskChange foi chamado corretamente + expect(mockInputMaskChange).toHaveBeenCalledWith("12:34"); + + // Simula a mudança do texto para "12:34" novamente + fireEvent.changeText(input, "1234"); + + // Verifica se inputMaskChange foi chamado novamente com o mesmo valor + expect(mockInputMaskChange).toHaveBeenCalledWith("12:34"); +  }); }); \ No newline at end of file