fix tests

This commit is contained in:
Ryan Mulligan 2020-07-29 22:02:22 -07:00
parent 0c2d0f1c96
commit 29d54a2496
2 changed files with 3 additions and 3 deletions

View File

@ -23,10 +23,10 @@ spec = do
it "quotes an unquoted meta.homepage URL" do
nixQuotedHomepageBad <- T.readFile "test_data/quoted_homepage_bad.nix"
nixQuotedHomepageGood <- T.readFile "test_data/quoted_homepage_good.nix"
let options = Utils.Options False False "" "" False False False False
let options = Utils.Options False False "r-ryantm" "" False False False False
let updateEnv = Utils.UpdateEnv "inadyn" "2.5" "2.6" Nothing options
-- TODO test correct file is being read
let rwArgs = Rewrite.Args updateEnv "inadyn" undefined undefined
let rwArgs = Rewrite.Args updateEnv "inadyn" undefined undefined False
(logs, (newContents, result)) <-
( runFinal
. embedToFinal

View File

@ -18,7 +18,7 @@ spec :: Spec
spec = do
describe "PR message" do
-- Common mock options
let options = Utils.Options False False "" "" False False False False
let options = Utils.Options False False "r-ryantm" "" False False False False
let updateEnv = Utils.UpdateEnv "foobar" "1.0" "1.1" (Just "https://update-site.com") options
let isBroken = False
let metaDescription = "\"Foobar package description\""