Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
lib-ical
Commits
e581d3f1
Commit
e581d3f1
authored
Dec 08, 2015
by
Andi Sidwell
Browse files
Add failing test for event.timezone() doing something
parent
069f5932
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/test_0.2.x.js
View file @
e581d3f1
...
...
@@ -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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment