Commit e581d3f1 authored by Andi Sidwell's avatar Andi Sidwell
Browse files

Add failing test for event.timezone() doing something

parent 069f5932
......@@ -467,7 +467,6 @@ describe('ical-generator 0.2.x / ICalCalendar', function() {
});
});
describe('timezone()', function() {
it('setter should return this', function() {
var e = ical().createEvent();
......@@ -478,6 +477,18 @@ describe('ical-generator 0.2.x / ICalCalendar', function() {
var e = ical().createEvent().timezone('Europe/Berlin');
assert.equal(e.timezone(), 'Europe/Berlin');
});
it('should change something', function() {
var cal = ical(),
e = cal.createEvent({
start: new Date(),
end: new Date(new Date().getTime() + 3600000),
summary: 'Example Event'
});
e.timezone('Europe/London');
assert.ok(cal.toString().indexOf('Europe/London') > -1);
});
});
describe('stamp()', function() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment