Skip to content

Commit

Permalink
enhance: parseYaml tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Roshan Ghojoghi authored and bripkens committed Nov 14, 2023
1 parent a1f3c5d commit 2bc1570
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,4 +228,12 @@ describe("findErrorElement", () => {

expect(result).toEqual(expectedOutput);
});

it("with both empty parsed yaml doc and empty error path should return undefined", () => {
const result = findErrorElement([], []);

const expectedOutput = undefined;

expect(result).toEqual(expectedOutput);
});
});

0 comments on commit 2bc1570

Please sign in to comment.