Skip to content

Commit c077991

Browse files
Coobahaljharb
authored andcommitted
[Tests] add test cases for stringify with empty keys
1 parent 95c6c3e commit c077991

2 files changed

Lines changed: 28 additions & 27 deletions

File tree

test/empty-keys-cases.js

Lines changed: 27 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/stringify.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -958,6 +958,7 @@ test('stringifies empty keys', function (t) {
958958
emptyTestCases.forEach(function (testCase) {
959959
t.test('stringifies an object with empty string key with ' + testCase.input, function (st) {
960960
st.deepEqual(qs.stringify(testCase.withEmptyKeys, { encode: false }), testCase.stringifyOutput);
961+
st.deepEqual(qs.stringify(testCase.noEmptyKeys, { encode: false }), testCase.stringifyOutputNoEmpty);
961962

962963
st.end();
963964
});

0 commit comments

Comments
 (0)