Search in sources :

Example 1 with BulletList

use of org.commonmark.node.BulletList in project hippo by NHS-digital-website.

the class ListAttributeProviderTest method setsCssClassOnBulletListElement.

@Test
public void setsCssClassOnBulletListElement() {
    // given
    final Node nodeBulletList = new BulletList();
    // when
    listAttributeProvider.setAttributes(nodeBulletList, "tagName is ignored", attributes);
    // then
    then(attributes).should().put("class", "nhsd-t-list nhsd-t-list--bullet");
    then(attributes).shouldHaveNoMoreInteractions();
}
Also used : BulletList(org.commonmark.node.BulletList) Node(org.commonmark.node.Node) Test(org.junit.Test)

Aggregations

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