git.iko.soy/typeable/openapi3
on master help sign in
Add decoding test for Info object
8e165b5Nickolay Kudasov
test/Data/SwaggerSpec.hs+2
@@ -50,6 +50,8 @@ spec = do
50 describe "Info Object" $ do
50 describe "Info Object" $ do
51 it "encodes correctly" $ do
51 it "encodes correctly" $ do
52 toJSON infoExample `shouldBe` infoExampleJSON
52 toJSON infoExample `shouldBe` infoExampleJSON
53+ it "decodes correctly" $ do
54+ fromJSON infoExampleJSON `shouldBe` Success infoExample
53
55
54main :: IO ()
56main :: IO ()
55main = hspec spec
57main = hspec spec