PhxIcons.Test (PhxIcons v0.1.1)

Copy Markdown View Source

Test helpers for asserting icon presence in rendered HTML.

Usage

import PhxIcons.Test

assert_icon render(view), "heroicons:heart"
refute_icon render(view), "heroicons:heart"

Summary

Functions

Asserts that the rendered HTML contains the given icon.

Refutes that the rendered HTML contains the given icon.

Functions

assert_icon(html, name)

(macro)

Asserts that the rendered HTML contains the given icon.

refute_icon(html, name)

(macro)

Refutes that the rendered HTML contains the given icon.