diff --git a/packages/ui-common/src/__tests__/parseFormattedStringToDomElements.test.ts b/packages/ui-common/src/__tests__/parseFormattedStringToDomElements.test.ts
index d478eade4..917934fe1 100644
--- a/packages/ui-common/src/__tests__/parseFormattedStringToDomElements.test.ts
+++ b/packages/ui-common/src/__tests__/parseFormattedStringToDomElements.test.ts
@@ -9,7 +9,14 @@ describe("parseFormattedStringToDomElements", () => {
expect(result).toHaveLength(1)
expect(result[0]).toBe(input)
})
-
+ test("should parse a string with only formatting tags", () => {
+ const input = "All of this is bold"
+ const result = parseFormattedStringToDomElements(input)
+ expect(result).toHaveLength(3)
+ expect(result[1].type).toBe("b")
+ expect(result[1].props.children).toHaveLength(1)
+ expect(result[1].props.children[0]).toBe("All of this is bold")
+ })
test("should parse a string with a single formatting tag", () => {
const input = "This is bold text"
const result = parseFormattedStringToDomElements(input)