Skip to content

Commit 88e39ec

Browse files
committed
add cancel test
1 parent 8438d45 commit 88e39ec

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/tool_test.cljs

+5-1
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,8 @@
3030
:height 100}}])
3131

3232
(rf/dispatch [::tool.events/activate :edit])
33-
(is (not= (tool.hierarchy/render :edit) [:g ()]))))))
33+
(is (not= (tool.hierarchy/render :edit) [:g ()])))
34+
35+
(testing "cancel"
36+
(rf/dispatch [::tool.events/cancel])
37+
(is (= @active-tool :transform))))))

0 commit comments

Comments
 (0)