brentonashworth/one — comment on commit 0e4038f58761dde458f8ca437729dd52d8677be9
File: test/one/test/dispatch.clj line 13
By brentonashworth:

What if a macro were created which allowed us to replace `ns` and `js-ns` with something like:

```clj
(js-testing-ns one.test.dispatch
"Event dispatching tests."
within-browser-env "http://localhost:8080/fresh"
(:js-use [one.dispatch :only (react-to delete-reaction fire)])
(:use [clojure.test]
[one.test :only (within-browser-env js-ns js-defn js)]))
```

This would have the same effect as the above code but would run tests in the browser in the `one.test.dispatch` namespace which would be set up with:

```clj
(ns one.test.dispatch
(:use [one.dispatch :only (react-to delete-reaction fire)]))
```

Tests usually don't run in the same namespace as the code under test.