We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd4dfbc commit ba1fb40Copy full SHA for ba1fb40
tests/React/__tests__/Tests.fs
@@ -46,6 +46,11 @@ Jest.describe("React tests", (fun () ->
46
Jest.expect(header).toHaveTextContent("6")
47
))
48
49
+ Jest.test("JSX EmptyElem render self-closing tags", (fun () ->
50
+ let elem = Counter.CounterJSX(5)
51
+ Jest.expect(elem).toStrictEqual(Fable.Core.JSX.jsx "<CounterJSX init={5} />")
52
+ ))
53
+
54
Jest.test("SpreadSheet renders correctly", (fun () ->
55
let elem = RTL.render(SpreadSheet.SpreadSheet() |> unbox)
56
Jest.expect(elem.container).toMatchSnapshot()
@@ -74,4 +79,4 @@ Jest.describe("React tests", (fun () ->
74
79
let text = elem.getByTestId "text"
75
80
Jest.expect(text).toHaveTextContent("3")
76
81
77
-))
82
+))
0 commit comments