stratosphere icon indicating copy to clipboard operation
stratosphere copied to clipboard

Add some integration tests that validate JSON output

Open jdreaver opened this issue 6 years ago • 0 comments

@MichaelXavier recently found a pretty egregious bug where the JSON instances for the top-level fields weren't dropping enough characters. We should probably add some tests for that.

I'm thinking we should get rid of everything under examples/ and just make some simple hspec tests that assert the JSON output of a Template is equal to some aeson-qq Value.

myTemplate `shouldBe` [aesonQQ|
  {
    "Description": "blah"
    "Resources": {
    ...
    }
  }
|]

jdreaver avatar Feb 28 '18 00:02 jdreaver