You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: coderd/parameter/renderer_test.go
+22Lines changed: 22 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -47,3 +47,25 @@ __This is bold text.__
47
47
require.Equal(t, nothingChanges, stripped)
48
48
})
49
49
}
50
+
51
+
funcTestHTML(t*testing.T) {
52
+
t.Parallel()
53
+
t.Run("Simple", func(t*testing.T) {
54
+
t.Parallel()
55
+
56
+
mdDescription:=`**Coder** is in *early access* mode. To ~~register~~ request access, fill out [this form](https://internal.example.com). ***Thank you!***`
57
+
expected:=`<strong>Coder</strong> is in <i>early access</i> mode. To <del>register</del> request access, fill out <a href="https://internal.example.com">this form</a>. <i><strong>Thank you!</strong></i>`
58
+
59
+
rendered:=parameter.HTML(mdDescription)
60
+
require.Equal(t, expected, rendered)
61
+
})
62
+
63
+
t.Run("Nothing changes", func(t*testing.T) {
64
+
t.Parallel()
65
+
66
+
nothingChanges:="This is a simple description, so nothing changes."
0 commit comments