Search in sources :

Example 1 with Link

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

the class HyperlinkAttributeProviderTest method setsHyperlinkCssClassOnLinkElement.

@Test
public void setsHyperlinkCssClassOnLinkElement() {
    // given
    final Node nodeLink = new Link();
    // when
    hyperlinkAttributeProvider.setAttributes(nodeLink, "tagName is ignored", attributes);
    // then
    then(attributes).should().put("class", "nhsd-a-link");
    then(attributes).shouldHaveNoMoreInteractions();
}
Also used : Node(org.commonmark.node.Node) Link(org.commonmark.node.Link) Test(org.junit.Test)

Aggregations

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