We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6748a73 commit b35fde8Copy full SHA for b35fde8
1 file changed
src/lib/__tests__/extractNamesFromJson.test.ts
@@ -25,8 +25,12 @@ const data = [
25
},
26
];
27
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
+
31
describe("Extract Names Function Tests", () => {
32
describe("Core Logic", () => {
33
+ // Happy path
34
it("should return an array of usernames when a proper json is input", () => {
35
const result = ExtractNamesFromJson(data);
36
expect(result).toEqual(["POTUS", "NASA"]);
0 commit comments