Skip to content

Commit

Permalink
Add test case for quoted multi-value parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
onny authored and kewisch committed Jan 5, 2025
1 parent 486a219 commit 14a8325
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions test/parse_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,30 @@ suite('parserv2', function() {
);
});

test('with quoted multi-value parameter', function() {
let attendee = ICAL.Property.fromString(
'ATTENDEE;MEMBER=' +
'"mailto:mygroup@localhost",' +
'"mailto:mygroup2@localhost",' +
'"mailto:mygroup3@localhost":' +
'mailto:user2@localhost'
);
let expected = [
'attendee',
{
member: [
'mailto:mygroup@localhost',
'mailto:mygroup2@localhost',
'mailto:mygroup3@localhost'
]
},
'cal-address',
'mailto:user2@localhost'
];

assert.deepEqual(attendee.toJSON(), expected);
});

test('with quoted value', function() {
let input = ';FMTTYPE="text/html":Here is HTML with signs like =;';
let expected = {
Expand Down

0 comments on commit 14a8325

Please sign in to comment.