Skip to content

Commit

Permalink
Rename & use tests conf explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
ccfontes committed Nov 6, 2023
1 parent ab37f9e commit faa8c12
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ Run locally the unit tests for `bb` language:
[source, bash]
----
cd template/bb
bb tests.clj
bb --config tests.edn tests.clj
----
`tests.clj` is included with the template so you can test any changes you make to the template before using it.

Expand Down
5 changes: 2 additions & 3 deletions examples/http/bb-routes-bell/handler.clj
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@

(def handler
(router
(POST "/"
(fn [{:keys [body]}]
[(keys body) (vals body)]))
(POST "/" (fn [{:keys [body]}]
[(keys body) (vals body)]))
(PUT "/foo/:id"
(fn [{:keys [path-params]}]
[(keys path-params) (vals path-params)]))))
1 change: 0 additions & 1 deletion template/bb/bb.edn → template/bb/tests.edn
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
; used only for tests. Not copied into docker container
{:paths ["." "lib"]
:deps {eg/eg {:mvn/version "0.5.6-alpha"}}}

0 comments on commit faa8c12

Please sign in to comment.