1
1
mirror of https://github.com/tweag/ormolu.git synced 2024-10-05 17:37:11 +03:00

Use it ".. instead of it "it ..

This commit is contained in:
Simon Hengel 2022-12-26 18:16:17 +07:00 committed by Mark Karpov
parent 0bcf31caef
commit 9cdb3e93b0

View File

@ -17,9 +17,9 @@ spec = do
Just absolute <- findCabalFile start
absolute `shouldSatisfy` isAbsolute
makeRelativeToCurrentDirectory absolute `shouldReturn` expectedCabalFile
it "it returns correct absolute path" $
it "returns correct absolute path" $
findsOrmoluCabal "src/Ormolu/Config.hs" "ormolu.cabal"
it "it finds correct path even when it starts from nonsense" $
it "finds correct path even when it starts from nonsense" $
findsOrmoluCabal "a/b/c/d/e" "ormolu.cabal"
it "returns Nothing when it cannot find a cabal file" $
findCabalFile "/foo.hs" `shouldReturn` Nothing