Skip to content

Commit

Permalink
Extend invalid YAML check test case
Browse files Browse the repository at this point in the history
Ref: #209

Add new field to the invalid YAML test case sample YAML to verify that the fix
from the `neat` package does indeed fix the reported issue.
  • Loading branch information
HeavyWombat committed Feb 2, 2022
1 parent 3b8f011 commit 7dd47ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/cmd/cmds_test.go
Original file line number Diff line number Diff line change
@@ -55,12 +55,13 @@ var _ = Describe("command line tool flags", func() {
Context("yaml command", func() {
Context("creating yaml output", func() {
It("should not create YAML output that is not valid", func() {
filename := createTestFile(`{"foo":{"bar":"*"}}`)
filename := createTestFile(`{"a": ",", "foo": {"bar":"*"}}`)
defer os.Remove(filename)

out, err := dyff("yaml", filename)
Expect(err).ToNot(HaveOccurred())
Expect(out).To(BeEquivalentTo(`---
a: ","
foo:
bar: "*"

0 comments on commit 7dd47ec

Please sign in to comment.