Skip to content

Commit 03e4fa7

Browse files
committed
test(querystring): correct expected values in tests for key-value parsing
1 parent 23dd8bc commit 03e4fa7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sprint-2/implement/querystring.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ test("parses querystring values containing =", () => {
1515
// Parses a simple key-value pair
1616
test("parses a simple key-value pair", () => {
1717
expect(parseQueryString("name=John")).toEqual({
18-
name: "Samantha",
18+
name: "John",
1919
});
2020
});
2121

2222
// Parses multiple pairs separated by "&"
2323
test("parses multiple key-value pairs", () => {
2424
expect(parseQueryString("name=John&age=25")).toEqual({
25-
name: "Samantha",
26-
age: "33",
25+
name: "John",
26+
age: "25",
2727
});
2828
});
2929

@@ -49,7 +49,7 @@ test("parses querystring with multiple = signs in value", () => {
4949
// Handles a mix of simple and complex values
5050
test("parses mixed simple and complex key-value pairs", () => {
5151
expect(parseQueryString("name=John&equation=1+1=2&city=London")).toEqual({
52-
name: "Samantha",
52+
name: "John",
5353
equation: "1+1=2",
5454
city: "London",
5555
});

0 commit comments

Comments
 (0)