mirror of
https://github.com/github/semantic.git
synced 2024-12-01 09:15:01 +03:00
16 lines
362 B
Haskell
16 lines
362 B
Haskell
module DiffSummarySpec where
|
|
|
|
import Test.Hspec
|
|
|
|
import Patch
|
|
import DiffSummary
|
|
|
|
testSummary :: DiffSummary String
|
|
testSummary = DiffSummary { description = "lol", patch = Insert DiffInfo, parentAnnotations = [] }
|
|
|
|
spec :: Spec
|
|
spec = parallel $ do
|
|
describe "show" $ do
|
|
it "should print adds" $
|
|
show testSummary `shouldBe` "Added an 'a' expression"
|