Skip to content

Commit

Permalink
test: fix for Relude 1.1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tiredpixel committed Jun 20, 2022
1 parent 8af7f2a commit f35c021
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/Isoxya/Plugin/Spellchecker/Endpoint/DataSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ pC = object [
load :: MonadIO m => Text -> [Text] -> Text -> m (ProcessorI, [Value])
load ns dicts url = do
i <- genProcessorI url dicts'
t <- readFileText $ fixtureResult ns url
let Just dataE = decode $ encodeUtf8 t
t <- readFileLBS $ fixtureResult ns url
let Just dataE = decode t
return (i, dataE)
where
dicts' = if null dicts
Expand Down
4 changes: 2 additions & 2 deletions test/Isoxya/Plugin/Spellchecker/ParserSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ load :: MonadIO m => Text -> m (Text, Text)
load url = do
i <- genProcessorI url Nothing
let textsA = parse i
textsE <- readFileText $ fixtureText url
return (unlines textsA, textsE)
textsE <- readFileBS $ fixtureText url
return (unlines textsA, decodeUtf8 textsE)

0 comments on commit f35c021

Please sign in to comment.