Skip to content

Commit 9e6ec3d

Browse files
snippets: test assertions with is
1 parent 0f5ec77 commit 9e6ec3d

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,5 @@ Clone the repository to the user level configuration location for Clojure LSP, e
4646

4747
### Unit testing
4848
* `deftest` - creates a deftest with testing directive and one assertion
49+
* `testing` - creates a testing testing directive and one assertion
50+
* `is` - an assertion with placeholders for test function and expected results

config.edn

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,4 +180,9 @@
180180
:detail "testing asserting group for clojure.test"
181181
:snippet "(testing \"${1:description-of-assertion-group}\"\n $0)"}
182182

183-
#_()]}
183+
{:name "is"
184+
:detail "assertion for clojure.test"
185+
:snippet "(is (= ${1:function call} ${2:expected result}))$0"}]
186+
187+
;; End of LSP snippets
188+
;; --------------------------------------------------

0 commit comments

Comments
 (0)