-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix double quote parsing error (#332)
- Loading branch information
1 parent
a6d0f9a
commit 8b0f559
Showing
3 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -976,6 +976,22 @@ vows | |
} | ||
} | ||
}, | ||
'with test22.ics (quoted parameter values)': { | ||
topic() { | ||
return ical.parseFile('./test/test22.ics'); | ||
}, | ||
'grabbing VEVENT': { | ||
topic(topic) { | ||
return _.values(topic)[0]; | ||
}, | ||
'it has the correct response comment'(event) { | ||
// See: <https://github.com/jens-maus/node-ical/issues/326> | ||
assert.equal(event.attendee.params['X-RESPONSE-COMMENT'], 'Test link: https://example.com/test'); | ||
assert.equal(event.attendee.params.CUTYPE, 'INDIVIDUAL'); | ||
assert.equal(event.attendee.val, 'mailto:[email protected]'); | ||
} | ||
} | ||
}, | ||
'with test_with_tz_list.ics': { | ||
topic() { | ||
return ical.parseFile('./test/test_with_tz_list.ics'); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
BEGIN:VCALENDAR | ||
BEGIN:VEVENT | ||
SUMMARY:Meeting | ||
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;X-NUM-GUESTS=0;X-RESPONSE-COMMENT="Test link: https://example.com/test":mailto:[email protected] | ||
END:VEVENT | ||
END:VCALENDAR |