aboutsummaryrefslogtreecommitdiffstats
path: root/test/caldav/ical_test.js
diff options
context:
space:
mode:
authorJames Lal <james@lightsofapollo.com>2012-07-26 08:00:25 -0700
committerJames Lal <james@lightsofapollo.com>2012-07-26 08:00:25 -0700
commit0ca56ee8c47a580d33881ea05a5975e507131172 (patch)
tree89659313b2e8c1c5cd04257f7f8bf2d63a7ae339 /test/caldav/ical_test.js
parent55aa47aab5bba0126d33ff44fa0dbf7472a2d91a (diff)
downloadjsCalDAV-0ca56ee8c47a580d33881ea05a5975e507131172.tar.gz
ical.js
Diffstat (limited to 'test/caldav/ical_test.js')
-rw-r--r--test/caldav/ical_test.js12
1 files changed, 4 insertions, 8 deletions
diff --git a/test/caldav/ical_test.js b/test/caldav/ical_test.js
index 702400f..f2bc8b9 100644
--- a/test/caldav/ical_test.js
+++ b/test/caldav/ical_test.js
@@ -1,4 +1,4 @@
-testSupport.lib('ical'),
+require('/lib/ical.js');
suite('caldav/ics', function() {
@@ -12,23 +12,19 @@ suite('caldav/ics', function() {
});
});
- suiteSetup(function() {
- ical = Caldav.require('ical');
- });
-
test('intiailizer', function() {
- assert.ok(ical);
+ assert.ok(ICAL);
});
suite('VEVENT', function() {
var result;
setup(function() {
- result = ical(samples.event);
+ result = ICAL.parse(samples.event);
});
test('parse', function() {
- assert.ok(result.vevent);
+ assert.equal(result.name, 'VCALENDAR');
});
});