Skip to content

Commit

Permalink
Known failure test for #634
Browse files Browse the repository at this point in the history
  • Loading branch information
kewisch committed May 1, 2024
1 parent 3c1df3c commit 3c078ad
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions test/failure_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,31 @@ suite('Known failures', function() {
assert.equal(subject.getParameter("cn"), "Z\\;");
assert.equal(subject.getFirstValue(), "mailto:[email protected]");
});

// Quoted multi-value parameters leak into the value
// Please see https://github.com/kewisch/ical.js/issues/634
testKnownFailure('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);
});
});

0 comments on commit 3c078ad

Please sign in to comment.