Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MorrowM committed Jul 15, 2021
1 parent 04ced74 commit 8672d2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/Spec.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Tldr
import Tldr.Types (ColorSetting(..))
import Test.Tasty
import Test.Tasty.Golden (goldenVsFile)
import System.IO (withBinaryFile, IOMode(..))
Expand All @@ -12,7 +13,7 @@ goldenTests = testGroup "Golden tests" [gtests]

renderPageToFile :: FilePath -> FilePath -> IO ()
renderPageToFile mdfile opfile = do
withBinaryFile opfile WriteMode (\handle -> renderPage mdfile handle)
withBinaryFile opfile WriteMode (\handle -> renderPage mdfile handle UseColor)

-- For adding new command, you need to add:
-- A new ".md" file for that command
Expand Down

0 comments on commit 8672d2f

Please sign in to comment.