2021-07-09 09:43:45 +00:00
|
|
|
export function expectCorrectDataInAttribute(
|
|
|
|
attribute,
|
|
|
|
{
|
|
|
|
attributeName,
|
|
|
|
attributeType,
|
|
|
|
entityType = null,
|
|
|
|
unit = null,
|
2022-06-27 16:49:35 +00:00
|
|
|
valueRequired = true,
|
|
|
|
},
|
2021-07-09 09:43:45 +00:00
|
|
|
) {
|
2022-06-27 09:30:51 +00:00
|
|
|
expect(attribute.name).to.eq(attributeName);
|
|
|
|
expect(attribute.slug).to.eq(attributeName);
|
|
|
|
expect(attribute.inputType).to.eq(attributeType);
|
|
|
|
expect(attribute.entityType).to.eq(entityType);
|
|
|
|
expect(attribute.unit).to.eq(unit);
|
|
|
|
expect(attribute.valueRequired).to.eq(valueRequired);
|
2021-07-09 09:43:45 +00:00
|
|
|
}
|