Skip to content

Commit b35fde8

Browse files
test: add comments
1 parent 6748a73 commit b35fde8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib/__tests__/extractNamesFromJson.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,12 @@ const data = [
2525
},
2626
];
2727

28+
// Other tests are not necessary here because Typescript already validates the json as formed properly
29+
// If the json is bad then we throw an error outside
30+
2831
describe("Extract Names Function Tests", () => {
2932
describe("Core Logic", () => {
33+
// Happy path
3034
it("should return an array of usernames when a proper json is input", () => {
3135
const result = ExtractNamesFromJson(data);
3236
expect(result).toEqual(["POTUS", "NASA"]);

0 commit comments

Comments
 (0)