Skip to content

Commit 4de6425

Browse files
committed
test: fix compatibility examples output rendering
1 parent da045bb commit 4de6425

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

Examples.generated.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ When there is not JSON schema differences, schema change is fully compatible.
1414
no differences
1515
```
1616
#### Output
17+
```
1718
full
19+
```
1820

1921
---
2022
## Diff

test/unit/Main.purs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import Data.String as String
1515
import Effect (Effect)
1616
import Effect.Aff (Aff, launchAff_)
1717
import Effect.Exception (throw)
18-
import JsonSchema.Compatibility (Compatibility)
1918
import Node.Encoding (Encoding(..))
2019
import Node.FS.Aff as FS
2120
import Node.Process as Process

test/unit/Test/Spec/JsonSchema/Compatibility.purs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ renderInput differences =
3434
differences
3535

3636
renderOutput Compatibility String
37-
renderOutput = Compatibility.renderCompatibility
37+
renderOutput compatibility =
38+
"```\n"
39+
<> Compatibility.renderCompatibility compatibility
40+
<> "\n```"
3841

3942
transform Set Difference Compatibility
4043
transform = Compatibility.calculate

0 commit comments

Comments
 (0)