-
-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Started the client module tests, got too much to do today so will hop…
…efully come back to it in a sec
Showing
2 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
(local {: describe : it : before-each } (require :plenary.busted)) | ||
(local assert (require :luassert.assert)) | ||
(local client (require :conjure.client)) | ||
|
||
(describe "multiple-states? before a change" | ||
(fn [] | ||
(it "returns false before the first change" | ||
(fn [] | ||
(assert.is_false (client.multiple-states?)))))) | ||
|
||
(describe "state-key" | ||
(fn [] | ||
(it "can be executed to get the current state key" | ||
(fn [] | ||
(assert.equal :default (client.state-key)))))) | ||
|
||
(describe "set-state-key!" | ||
(fn [] | ||
(it "changes the state key value" | ||
(fn [] | ||
(client.set-state-key! :new-key) | ||
(assert.equal :new-key (client.state-key)))))) | ||
|
||
(describe "multiple-states? after a change" | ||
(fn [] | ||
(it "returns true after the first change" | ||
(fn [] | ||
(assert.is_true (client.multiple-states?)))))) | ||
|
||
;; TODO Carry on with this file! | ||
; (describe "new-state" | ||
; (fn [] | ||
; )) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.