import RemainingTotalUploadSize from "../RemainingTotalUploadSize";

import StringAttributeModel from "../../StringAttributeModel";
import UploadAttributeModel from "../../UploadAttributeModel";

describe("remaining total upload size", () => {
  it("does not needs to check hint applicability", () => {
    expect(RemainingTotalUploadSize.checkHintApplicability).toBe(false);
  });

  it("needs to check hint applicability", () => {
    expect(
      RemainingTotalUploadSize.isApplicableForAttribute(
        new StringAttributeModel(),
      ),
    ).toBe(false);

    expect(
      RemainingTotalUploadSize.isApplicableForAttribute(
        new UploadAttributeModel(),
      ),
    ).toBe(true);
  });
});
