Module
Test.Spec.Golden.Assertions
- Package
- purescript-spec-golden
- Repository
- jordanmartinez/purescript-spec-golden
#shouldEqualFile Source
shouldEqualFile :: String -> FilePath -> Aff Unit
Fails the test if the text content does not exactly equal the content stored in the file.
Example: "foo"
shouldEqual"path/to/file/containing/foo.txt"
Note: uses diff
under the hood.
#shouldEqualFixture Source
shouldEqualFixture :: FilePath -> FilePath -> Aff Unit
Fails the test if the first file's content does not equal the second file's content.
Example: "snapshot/foo.txt"
shouldEqual"snapshot-out/foo.out"
#shouldEqualFile' Source
shouldEqualFile' :: String -> FilePath -> Aff (Maybe ExecaError)
A variant of shouldEqualFile'
.
Nothing
= contents are the sameJust _
= contents are different / callingdiff
encountered a problem
#shouldEqualFixture' Source
shouldEqualFixture' :: FilePath -> FilePath -> Aff (Maybe ExecaError)
A variant of shouldEqualFixture'
.
Nothing
= files' contents are the sameJust _
= files' contents are different / callingdiff
encountered a problem
- Modules
- Test.
Spec. Golden. Assertions