Replies: 1 comment 2 replies
|
Hey @kkinnear I added :style [:community :meta-alt :how-to-ns :binding-nl]and it definitely addresses #224 - I think the only issue I see is this change: -(deftest valid-ref?
- (is (false? (sut/valid-ref? nil)))
+(deftest valid-ref? (is (false? (sut/valid-ref? nil)))
(is (false? (sut/valid-ref? "")))
(is (false? (sut/valid-ref? "i/do/not/start/with/a/slash")))
(is (true? (sut/valid-ref? "/this/is/a/valid/ref")))The first I then added this instead only for {:style [:community :how-to-ns :binding-nl]
:fn-map
{"deftest" [:arg1-body {:style :meta-alt}]
...
}That looked better, with only one little change that seems to happen all over the code base, a couple of examples: (t/deftest broadcast-to!
(t/testing "cannot be performed in a transaction"
(t/is (thrown? IllegalStateException
- (dosync (sut/broadcast-to! (mock-socket) (mock-topic) (mock-event)))))))
+ (dosync (sut/broadcast-to! (mock-socket)
+ (mock-topic)
+ (mock-event)))))))- topic-a (sut/with-event-handlers (sut/->TopicController "topic/a" ::any [] [])
- (sut/->EventHandler "topic.a/x" ::any))
+ topic-a (sut/with-event-handlers
+ (sut/->TopicController "topic/a" ::any [] [])
+ (sut/->EventHandler "topic.a/x" ::any)) (deftest add-template-text-to-note
(testing "note without value"
(is (= {::model.note/id note-id ::model.note/value "foo"}
- (sut/add-note-text-if-not-included {::model.note/id note-id} "foo"))
+ (sut/add-note-text-if-not-included {::model.note/id note-id}
+ "foo"))
"it should add the new text"))I found this worth mentioning cause there might be a bug lurking, let me know if you want me to try any alpha/beta version or have more questions! |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
A fair number of fixes and changes in this release. See the CHANGELOG.md for details, but notable new things are:
New
:rangeconfiguration options::use-previous-!zprint?and:continue-after-!zprint-error?. These allow someone doing:rangeformatting on a file (string) which has;!zprintformatting directives to have the lines in the range formatted the same when doing just the range or the whole file.:use-previous-!zprint?if true will scan all previous;!zprintdirectives prior to formatting the range.:continue-after-!zprint-error?if true will ignore errors in any;!zprintdirectives, and output any errors in the map returned by:output {:range? true}.An alternative way to format metadata was created. It is
:style :meta-alt. It is presently experiemental. Issue Metadata on deftest (and def) #224.letfndidn't indent its fns like fns. Now it does. And if they are multi-arity, the various arities don't hang, but rather flow. Issue letfn doesn't indent its fns like fns. #221.The styles
:communityand:roddidn't compose, because:guidedwas not considered a "body" function type. Now they do. Issue:communityand:roddon't compose well #223.zprint-file-strwas not thread-safe, for a variety of reasons. Now it is, and configuration is thread-safe as well. Issue Thread safety issues #226.Figured out some Figwheel issues. If you use zprint with Figwheel, check out the CHANGELOG.md, or see issue Clojurescript warnings with zprint 1.2.0, 1.2.2 #231.
This discussion was created from the release zprint-filter-1.2.3.
All reactions