-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Damianos Mylonakis
committed
Feb 17, 2012
1 parent
4f16ecd
commit 6575414
Showing
9 changed files
with
89 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
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,13 @@ | ||
|
||
|
||
TESTS = test/*.js | ||
REPORTER = spec | ||
|
||
test: | ||
@./node_modules/.bin/mocha \ | ||
--require should \ | ||
--reporter $(REPORTER) \ | ||
--growl \ | ||
$(TESTS) | ||
|
||
.PHONY: test |
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 @@ | ||
module.exports = require('./lib/ical'); |
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,3 @@ | ||
module.exports = { | ||
Parser: require('./parser').Parser | ||
} |
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
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,23 @@ | ||
var should = require('should'), | ||
fs = require('fs'), | ||
ical = require('../'); | ||
|
||
describe('Parser', function () { | ||
var parser, full_ics_stream | ||
var full_ics = fs.readFileSync(__dirname + '/resources/full.ics') | ||
beforeEach(function (done) { | ||
parser = new ical.Parser() | ||
full_ics_stream = fs.createReadStream(__dirname + '/resources/full.ics') | ||
done() | ||
}) | ||
describe('parses correctly tests', function () { | ||
it('must parse full.ics', function (done) { | ||
parser.on('end', done) | ||
parser.write(full_ics) | ||
}) | ||
it('must parse full.ics streamed', function (done) { | ||
parser.on('end', done); | ||
full_ics_stream.pipe(parser) | ||
}) | ||
}) | ||
}) |
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,30 @@ | ||
BEGIN:VCALENDAR | ||
PRODID:-//Google Inc//Google Calendar 70.9054//EN | ||
VERSION:2.0 | ||
CALSCALE:GREGORIAN | ||
METHOD:PUBLISH | ||
X-WR-CALNAME:dan Mylonakis | ||
X-WR-TIMEZONE:Europe/Athens | ||
BEGIN:VEVENT | ||
DTSTART:20111206T150000Z | ||
DTEND:20111206T180000Z | ||
DTSTAMP:20120217T005926Z | ||
UID:[email protected] | ||
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;CN=danmyl | ||
[email protected];X-NUM-GUESTS=0:mailto:[email protected] | ||
CREATED:20111206T013929Z | ||
DESCRIPTION: | ||
LAST-MODIFIED:20111206T013929Z | ||
LOCATION: | ||
SEQUENCE:1 | ||
STATUS:TENTATIVE | ||
SUMMARY:557 με δαμον | ||
TRANSP:OPAQUE | ||
CATEGORIES:http://schemas.google.com/g/2005#event | ||
BEGIN:VALARM | ||
ACTION:DISPLAY | ||
DESCRIPTION:This is an event reminder | ||
TRIGGER:-P0DT0H10M0S | ||
END:VALARM | ||
END:VEVENT | ||
END:VCALENDAR |