Skip to content

Commit

Permalink
Add a test for current-client-module-name
Browse files Browse the repository at this point in the history
  • Loading branch information
Olical committed Aug 30, 2024
1 parent 94a82aa commit a724889
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 13 deletions.
23 changes: 11 additions & 12 deletions fnl/conjure-spec/client_spec.fnl
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,17 @@
(client.set-state-key! :default)
(assert.equal 1 (state :foo :bar)))))))

; (describe "current-client-module-name"
; (fn []
; (describe "with-filetype"
; (fn []
; (it "returns the fennel module when we're in a fennel file"
; (fn []
; ;; Error in error handling?
; (assert.same
; {:extension "fnl"
; :filetype "fennel"
; :module-name "conjure.client.fennel.aniseed"}
; (client.with-filetype "fennel" #(client.current-client-module-name)))))))))
(describe "current-client-module-name"
(fn []
(describe "with-filetype"
(fn []
(it "returns the fennel module when we're in a fennel file"
(fn []
(assert.same
{:filetype "fennel"
:module-name "conjure.client.fennel.aniseed"}
(client.with-filetype "fennel" #(client.current-client-module-name)))
nil))))))

; (describe "with-filetype"
; (fn []
Expand Down
16 changes: 15 additions & 1 deletion lua/conjure-spec/client_spec.lua

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a724889

Please sign in to comment.