Skip to content

Commit 4e25b52

Browse files
msivasubramaniaandatho7561
authored andcommitted
added positive test case as well
1 parent 2846187 commit 4e25b52

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

test/schemaValidation.test.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2105,9 +2105,14 @@ obj:
21052105
},
21062106
},
21072107
});
2108-
const content = `prop: false`;
2109-
const result = await parseSetup(content);
2108+
2109+
let content = `prop: false`;
2110+
let result = await parseSetup(content);
21102111
expect(result.length).to.eq(1);
21112112
expect(result[0].message).to.eq('Value must be true.');
2113+
2114+
content = `prop: true`;
2115+
result = await parseSetup(content);
2116+
expect(result.length).to.eq(0);
21122117
});
21132118
});

0 commit comments

Comments
 (0)