1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
var fs = require('fs'), ics = requireLib('ics'), data = fs.readFileSync(__dirname + '/../../data/test.data', 'utf8'); suite('caldav/ics', function() { test('intiailizer', function() { ics(data, function(data) { console.log(data.vevent[0]); }, function() { console.log('y'); }) }); });