Search in sources :

Example 1 with OrderedList

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();
}
Also used : OrderedList(org.commonmark.node.OrderedList) Node(org.commonmark.node.Node) Test(org.junit.Test)

Aggregations

Node (org.commonmark.node.Node)1 OrderedList (org.commonmark.node.OrderedList)1 Test (org.junit.Test)1