use of org.commonmark.node.OrderedList in project hippo by NHS-digital-website.
the class ListAttributeProviderTest method setsCssClassOnOrderedListElement.
@Test
public void setsCssClassOnOrderedListElement() {
// given
final Node nodeOrderedList = new OrderedList();
// when
listAttributeProvider.setAttributes(nodeOrderedList, "tagName is ignored", attributes);
// then
then(attributes).should().put("class", "nhsd-t-list nhsd-t-list--number");
then(attributes).shouldHaveNoMoreInteractions();
}
Aggregations