File tree 2 files changed +1
-28
lines changed
test/functional/formatting_stack
2 files changed +1
-28
lines changed Original file line number Diff line number Diff line change 12
12
(apply format!))
13
13
this )
14
14
15
- ; ; Allow parameterless configuring using `mount/start-with-args`.
16
- (mount-up/on-up :formatting-with-mount-args
17
- (fn [_]
18
- (when-let [config (::config (mount/args ))]
19
- (start config)))
20
- :before )
21
-
22
15
(defn configure! [config]
23
- (mount-up/on-up :formatting-with-provided-config
24
- (fn [_]
25
- (start config))
26
- :before ))
16
+ (mount-up/on-up :formatting (fn [_] (start config)) :before ))
Original file line number Diff line number Diff line change 41
41
(is (= [sample-report]
42
42
@p)))
43
43
(mount/stop ))))
44
-
45
- (deftest works-with-mount-args
46
- (testing " It can be started/stopped without errors"
47
- (let [p (atom nil )
48
- ; ; pass an empty stack (except for the `proof`), so that no side-effects will be triggered (would muddy the test suite):
49
- opts {:strategies []
50
- :third-party-indent-specs {}
51
- :formatters []
52
- :linters [(proof p)]
53
- :processors []
54
- :in-background? false
55
- :reporter (reporters.passthrough/new )}]
56
- (mount/start-with-args {:formatting-stack.mount/config opts})
57
- (testing " It actually runs its members, such as linters"
58
- (is (= [sample-report]
59
- @p)))
60
- (mount/stop ))))
You can’t perform that action at this time.
0 commit comments