mirror of
https://github.com/github/semantic.git
synced 2024-12-24 15:35:14 +03:00
Test null on both sides in JSON payload
This commit is contained in:
parent
2f6c669899
commit
47ce5a63c1
@ -64,6 +64,10 @@ spec = parallel $ do
|
||||
h <- openFile "test/fixtures/input/diff-no-language.json" ReadMode
|
||||
readBlobsFromHandle h `shouldThrow` (== ExitFailure 1)
|
||||
|
||||
it "throws if null on before and after" $ do
|
||||
h <- openFile "test/fixtures/input/diff-null-both-sides.json" ReadMode
|
||||
readBlobPairsFromHandle h `shouldThrow` (== ExitFailure 1)
|
||||
|
||||
describe "readBlobsFromHandle" $ do
|
||||
it "returns blobs for valid JSON encoded parse input" $ do
|
||||
h <- openFile "test/fixtures/input/parse.json" ReadMode
|
||||
|
6
test/fixtures/input/diff-null-both-sides.json
vendored
Normal file
6
test/fixtures/input/diff-null-both-sides.json
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"blobs": [{
|
||||
"before": null,
|
||||
"after": null
|
||||
}]
|
||||
}
|
Loading…
Reference in New Issue
Block a user