import { LabelDropItemEntity } from "../Entities/LabelDropItemEntity";
import { labelDropLabelValidator } from "./labelDropLabelValidator";
describe("Label Drop Label Validator", () => {
    it("Returns a label validation message if the label is empty", () => {
        expect(labelDropLabelValidator("")).toEqual(LabelDropItemEntity.LABEL_DROP_EMPTY);
    });
    it("Returns a label validation message if the label is longer than 40", () => {
        let lbl = "X";
        for (let index = 0; index < 40; index++) {
            lbl = lbl + "X";
        }
        expect(lbl.length).toEqual(41);
        expect(labelDropLabelValidator(lbl)).toEqual(LabelDropItemEntity.LABEL_DROP_TOO_LONG);
    });
    it("Null when good", () => {
        const lbl = "X";
        expect(labelDropLabelValidator(lbl)).toBeNull();
    });
});
//# sourceMappingURL=labelDropLabelValidator.test.js.map