Skip to content

Commit 5ceb06e

Browse files
committed
fix add tests for having multiple + in query value
1 parent 80932ca commit 5ceb06e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ test("should replace '+' by ' '", () => {
3535
expect(parseQueryString("full+name=John+Doe")).toEqual({
3636
"full name": "John Doe",
3737
});
38+
expect(parseQueryString("values=a+b+c+d")).toEqual({
39+
values: "a b c d",
40+
});
41+
expect(parseQueryString("first+name")).toEqual({
42+
"first name": "",
43+
});
3844
});
3945

4046
// Stretch exercise: Handling query strings that contain identical keys

0 commit comments

Comments
 (0)