                         ("a", "bold", "italic")]
 
         for (index, tagName) in tagNames.enumerated() {
-            let parser = HTMLToAttributedString(usingDefaultFontDescriptor: UIFont.systemFont(ofSize: 12).fontDescriptor)
+            let parser = HTMLToAttributedString(usingDefaultFontDescriptor: defaultFontDescriptor)
 
             let firstText = "Hello "
             let secondText = "world"

        let tagNames = ["bold", "italic", "customTag", "div", "p", "a"]

        for (index, tagName) in tagNames.enumerated() {
            let parser = HTMLToAttributedString(usingDefaultFontDescriptor: UIFont.systemFont(ofSize: 12).fontDescriptor)

            let nodeText = "Hello"
            let html = "<\(tagName)>\(nodeText)</\(tagName)>"


class HTMLToAttributedStringTests: XCTestCase {

    let defaultFontDescriptor = UIFont.systemFont(ofSize: 12).fontDescriptor


    /// Test the conversion of a single tag at the root level to `NSAttributedString`.
    ///
    /// Example: <bold>Hello</bold>
