-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't make style names that start with -
Can happen under advanced compilation if the fn's name starts with _
- Loading branch information
Showing
3 changed files
with
16 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
(ns spade.runner | ||
(:require [doo.runner :refer-macros [doo-tests doo-all-tests]] | ||
[spade.core-test])) | ||
(:require [doo.runner :refer-macros [doo-all-tests]] | ||
[spade.core-test] | ||
[spade.util-test])) | ||
|
||
(doo-all-tests #"spade\..*-test") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
(ns spade.util-test | ||
(:require [cljs.test :refer-macros [deftest testing is]] | ||
[spade.util :refer [factory->name]])) | ||
|
||
(deftest factory->name-test | ||
(testing "Never prefix with illegal characters" | ||
; simulate a fn under advanced compilation having | ||
; a name that starts with _ | ||
(is (= "_advanced-compile" | ||
(factory->name #js {:name "_advanced_compile"}))))) | ||
|