"use strict";

var _validation = require("./validation");
describe("validateTimeInput", function () {
  it("should work", function () {
    expect((0, _validation.validateTimeInput)("0000:45", true)).toBeFalsy();
    expect((0, _validation.validateTimeInput)("0000.45", true)).toBeFalsy();
    expect((0, _validation.validateTimeInput)("0000,45", true)).toBeFalsy();
    expect((0, _validation.validateTimeInput)("10000,45", true)).toBeTruthy();
    expect((0, _validation.validateTimeInput)("1000", true)).toBeTruthy();
    expect((0, _validation.validateTimeInput)("00:45", true)).toBeTruthy();
    expect((0, _validation.validateTimeInput)("00,45", true)).toBeTruthy();
    expect((0, _validation.validateTimeInput)("00.45", true)).toBeTruthy();
    expect((0, _validation.validateTimeInput)("00.", true)).toBeTruthy();
    expect((0, _validation.validateTimeInput)("0", true)).toBeTruthy();
    expect((0, _validation.validateTimeInput)(".5", true)).toBeTruthy();
    expect((0, _validation.validateTimeInput)(",55", true)).toBeTruthy();
    expect((0, _validation.validateTimeInput)(",55", false)).toBeTruthy();
    expect((0, _validation.validateTimeInput)(".55", false)).toBeTruthy();
    expect((0, _validation.validateTimeInput)("00:45", false)).toBeFalsy();
    expect((0, _validation.validateTimeInput)("00.45", false)).toBeFalsy();
    expect((0, _validation.validateTimeInput)("00,45", false)).toBeFalsy();
    expect((0, _validation.validateTimeInput)("0:45", false)).toBeTruthy();
    expect((0, _validation.validateTimeInput)("0,45", false)).toBeTruthy();
    expect((0, _validation.validateTimeInput)("0.45", false)).toBeTruthy();
    expect((0, _validation.validateTimeInput)("00.", false)).toBeFalsy();
    expect((0, _validation.validateTimeInput)("00", false)).toBeFalsy();
    expect((0, _validation.validateTimeInput)("0", false)).toBeTruthy();
    expect((0, _validation.validateTimeInput)("1:45", false)).toBeTruthy();
    expect((0, _validation.validateTimeInput)("1:6", false)).toBeFalsy();
    expect((0, _validation.validateTimeInput)("11:6", true)).toBeFalsy();
    expect((0, _validation.validateTimeInput)("11:555", false)).toBeFalsy();
  });
});
describe("validateStopwatchTime", function () {
  it("should work", function () {
    expect((0, _validation.validateStopwatchTime)("0000:45")).toBeFalsy();
    expect((0, _validation.validateStopwatchTime)("0000.45")).toBeFalsy();
    expect((0, _validation.validateStopwatchTime)("0000,45")).toBeFalsy();
    expect((0, _validation.validateStopwatchTime)("10000,45")).toBeFalsy();
    expect((0, _validation.validateStopwatchTime)("1000")).toBeFalsy();
    expect((0, _validation.validateStopwatchTime)("00:45")).toBeTruthy();
    expect((0, _validation.validateStopwatchTime)("00,45")).toBeTruthy();
    expect((0, _validation.validateStopwatchTime)("00.45")).toBeTruthy();
    expect((0, _validation.validateStopwatchTime)("00.")).toBeTruthy();
    expect((0, _validation.validateStopwatchTime)("0")).toBeTruthy();
    expect((0, _validation.validateStopwatchTime)(".5")).toBeTruthy();
    expect((0, _validation.validateStopwatchTime)(",55")).toBeTruthy();
    expect((0, _validation.validateStopwatchTime)(",55")).toBeTruthy();
    expect((0, _validation.validateStopwatchTime)(".55")).toBeTruthy();
    expect((0, _validation.validateStopwatchTime)("0:45")).toBeTruthy();
    expect((0, _validation.validateStopwatchTime)("0,45")).toBeTruthy();
    expect((0, _validation.validateStopwatchTime)("0.45")).toBeTruthy();
    expect((0, _validation.validateStopwatchTime)("0")).toBeTruthy();
    expect((0, _validation.validateStopwatchTime)("1:45")).toBeTruthy();
    expect((0, _validation.validateStopwatchTime)("1:6")).toBeFalsy();
    expect((0, _validation.validateStopwatchTime)("11:6")).toBeFalsy();
    expect((0, _validation.validateStopwatchTime)("11:555")).toBeFalsy();
  });
});
//# sourceMappingURL=validation.test.js.map