Skip to content

Commit

Permalink
adding tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaly-t committed Oct 18, 2020
1 parent 2172a67 commit 66964fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "connection-string",
"version": "4.2.2",
"version": "4.3.0",
"description": "Advanced URL Connection String parser + generator.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
1 change: 1 addition & 0 deletions test/main.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ describe('params', () => {
describe('with repeated names', () => {
it('must join values into array', () => {
expect(parse('?one=1&one=2&two=3,4&two=5')).to.eql({params: {one: ['1', '2'], two: ['3', '4', '5']}});
expect(parse('?one=1&one=hello+here,2')).to.eql({params: {one: ['1', 'hello here', '2']}});
});
it('must join csv values into array', () => {
expect(parse('?one=1&one=2,3')).to.eql({params: {one: ['1', '2', '3']}});
Expand Down

0 comments on commit 66964fd

Please sign in to comment.