Skip to content
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.

Commit

Permalink
Add tests to trigger the cljs.spec.test.alpha/instrument WARNING
Browse files Browse the repository at this point in the history
  • Loading branch information
arichiardi committed Nov 17, 2017
1 parent 3b8173f commit 8e4d460
Show file tree
Hide file tree
Showing 6 changed files with 301 additions and 274 deletions.
6 changes: 0 additions & 6 deletions src/test/cljs_build/test_check/core_test.cljs

This file was deleted.

12 changes: 12 additions & 0 deletions src/test/cljs_build/test_check/instrument/core.cljs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
(ns test-check.instrument.core
"The entry point of this program"
(:require [cljs.spec.test.alpha :as stest]))

(stest/instrument)

(defn -main
[& args]
(println "Hello world!")
(process.exit 0))

(set! *main-cli-fn* `-main)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(ns test-check.core
(ns test-check.summary.core
(:require [cljs.spec.alpha :as s :include-macros true]))

(s/fdef ranged-rand
Expand Down
6 changes: 6 additions & 0 deletions src/test/cljs_build/test_check/summary/core_test.cljs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
(ns test-check.summary.core-test
(:require [cljs.spec.test.alpha :as stest]
[test-check.summary.core])
(:require-macros [cljs.spec.test.alpha :as stest]))

(stest/summarize-results (stest/check 'test-check.summary.core))
Loading

0 comments on commit 8e4d460

Please sign in to comment.