import MoneyAttributeModel from "../MoneyAttributeModel";

describe("moneyAttributeModel", () => {
  it("should be able to create an empty ImageAttribute object", () => {
    const attribute = new MoneyAttributeModel();

    expect(attribute).toBeInstanceOf(MoneyAttributeModel);
    expect(attribute.type).toBe("money");
  });

  it("should have a currency symbol", () => {
    const attribute = new MoneyAttributeModel(
      {},
      {
        currencySymbol: "ƒ",
      },
    );

    expect(attribute.currencySymbol).toBe("ƒ");
    expect(attribute.prefix).toBe("ƒ");
  });
});
