Skip to content

Commit 946461b

Browse files
author
russom
committed
Last test commented out
1 parent 7fc4886 commit 946461b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎Sprint-2/implement/querystring.test.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ test("should ignore empty key-value pairs", () => {
1717
key2: "value2",
1818
});
1919
});
20-
/*
20+
2121
test("should accept empty string as key or as value", () => {
2222
expect(parseQueryString("=value")).toEqual({ "": "value" });
2323
expect(parseQueryString("key")).toEqual({ key: "" });
@@ -40,10 +40,11 @@ test("should replace '+' by ' '", () => {
4040
// Stretch exercise: Handling query strings that contain identical keys
4141

4242
// Delete this test if you are not working on this optional case
43+
/*
4344
test("should store values of a key in an array when the key has 2 or more values", () => {
4445
expect(parseQueryString("key=value1&key=value2&key=value3&foo=bar")).toEqual({
4546
key: ["value1", "value2", "value3"],
4647
foo: "bar",
4748
});
4849
});
49-
*/
50+
*/

0 commit comments

Comments
 (0)