Skip to content

Commit ed14c56

Browse files
srghmafsoikin
andauthored
feat: better output -> apply suggestion
Co-authored-by: Fyodor Soikin <[email protected]>
1 parent 25d2d86 commit ed14c56

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Test/Spec/Discovery.purs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ discover :: ∀ m. MonadAff m => String -> m (Spec Unit)
2121
discover pattern = do
2222
runDiscover <- liftEffect $ runEffectFn1 getSpecs pattern
2323
specs <- liftAff $ fromEffectFnAff runDiscover
24-
let specsWrappedInDescribe = map (\{ name, spec } -> describe name spec) specs
25-
pure $ sequence_ specsWrappedInDescribe
24+
pure $ sequence_ $ specs <#> \{ name, spec } -> describe name spec
2625

2726
discoverAndRunSpecs :: Array Reporter -> String -> Effect Unit
2827
discoverAndRunSpecs reporters pattern = launchAff_ do

0 commit comments

Comments
 (0)