import XMLAttributeModel from "../XMLAttributeModel";
import { ATTRIBUTE_WIDTH } from "../../../constants";

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

    expect(attribute).toBeInstanceOf(XMLAttributeModel);

    expect(attribute.type).toBe("xml");
    expect(attribute.rows).toBe(10);

    expect(attribute.constraintCollection).toHaveLength(1);

    expect(attribute.readonlyWidth).toBe(ATTRIBUTE_WIDTH.EXTRA_LARGE);
  });
});
