on master help sign in
Fix selftest
commitaeb61bf9b68ada0130afaac0f52ef6aa564a4a9d authorAli Abrar <aliabrar@gmail.com> dateThu 13 Jun 2019, 17:07 (7 years ago) parenta77a4aa
1 file changed+2−1
lib/selftest/src/Obelisk/SelfTest.hs+2−1
lib/selftest/src/Obelisk/SelfTest.hs+2−1
@@ -129,7 +129,8 @@ main = do
129129
130130 it "produces a valid route config" $ inTmpObInit $ \tmp -> liftIO $ do
131131 configs <- getConfigs
132− withCurrentDirectory (T.unpack $ toTextIgnore tmp) $ getConfigRoute configs `shouldNotReturn` Nothing
132+ withCurrentDirectory (T.unpack $ toTextIgnore tmp) $
133+ return (either (const Nothing) Just $ getConfigRoute configs) `shouldNotReturn` Nothing
133134
134135 -- These tests fail with "Could not find module 'Obelisk.Generated.Static'"
135136 -- when not run by 'nix-build --attr selftest'