moved the test resources around a bit

This commit is contained in:
Tom Sydney Kerckhove 2021-11-02 00:12:36 +01:00
parent 3703c2cd31
commit d9095e0c02
80 changed files with 3 additions and 3 deletions

View File

@ -126,7 +126,7 @@ jsonSchemaSpec filePath =
describe ("jsonSchemaSpec @" <> nameOf @a) $ do
it "outputs the same schema as before" $
pureGoldenJSONFile
("test_resources/schema/" <> filePath <> ".json")
("test_resources/json-schema/" <> filePath <> ".json")
(JSON.toJSON (jsonSchemaViaCodec @a))
it "validates all encoded values" $
forAllValid $ \(a :: a) ->

View File

@ -70,5 +70,5 @@ swaggerSchemaSpec filePath =
pure ()
swagger = mempty {_swaggerDefinitions = definitions}
in pureGoldenJSONFile
("test_resources/swagger/" <> filePath <> ".json")
("test_resources/swagger-schema/" <> filePath <> ".json")
(JSON.toJSON swagger)

View File

@ -55,4 +55,4 @@ spec = do
yamlSchemaSpec :: forall a. (Show a, Eq a, Typeable a, GenValid a, HasCodec a) => FilePath -> Spec
yamlSchemaSpec filePath = do
it ("outputs the same schema as before for " <> nameOf @a) $
pureGoldenByteStringFile ("test_resources/schema/" <> filePath <> ".txt") (renderChunksBS With24BitColours $ schemaChunksViaCodec @a)
pureGoldenByteStringFile ("test_resources/yaml-schema/" <> filePath <> ".txt") (renderChunksBS With24BitColours $ schemaChunksViaCodec @a)