Skip to content

Commit

Permalink
::lang/pure generates node - compiler test
Browse files Browse the repository at this point in the history
  • Loading branch information
leonoel committed Aug 7, 2024
1 parent dbd5cdb commit fde4384
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/hyperfiddle/electric/impl/compiler_test.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,10 @@

(tests "test-pure"
(match (l/test-compile ::Main (::lang/site :client (::lang/pure :foo)))
`[(r/cdef 0 [] [] :client
`[(r/cdef 0 [:client] [] :client
(fn [~'frame]
(r/pure (r/pure :foo))))]))
(r/define-node ~'frame 0 (r/pure :foo))
(r/pure (r/node ~'frame 0))))]))

(tests "test-ctor"
(match (l/test-compile ::Main (::lang/ctor :foo))
Expand Down

0 comments on commit fde4384

Please sign in to comment.