Skip to content

Commit

Permalink
Update tests to account for new datetime format
Browse files Browse the repository at this point in the history
(cherry picked from commit 8db7d3e)
  • Loading branch information
wxactly authored and alies-dev committed Mar 1, 2023
1 parent 01e3b5a commit eccc260
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion tests/Generators/IcsGeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function it_has_a_product_id()
public function it_has_a_product_dtstamp()
{
$this->assertMatchesSnapshot(
$this->generator(['DTSTAMP' => 'TZID=UTC:20180201T090000'])->generate($this->createShortEventLink())
$this->generator(['DTSTAMP' => '20180201T090000Z'])->generate($this->createShortEventLink())
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ PRODID:Spatie calendar-links
BEGIN:VEVENT
UID:9fc99e4f3dcee13f23355d63918b9a0c
SUMMARY:Birthday Party +1
DTSTAMP;TZID=UTC:20180201T090000
DTSTART;TZID=UTC:20180201T090000
DTEND;TZID=UTC:20180201T180000
DTSTAMP:20180201T090000Z
DTSTART:20180201T090000Z
DTEND:20180201T180000Z
DESCRIPTION:With balloons\, clowns and stuff\nBring a dog\, bring a frog.\nThere will be line breaks on it.\nProject link calendar-links\n\n\nThank you.\n
LOCATION:Party Lane 1A\, 1337 Funtown
END:VEVENT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ PRODID:Spatie calendar-links
BEGIN:VEVENT
UID:2009a227b7dd438a285434127f67f267
SUMMARY:New Year
DTSTAMP;TZID=UTC:20191231T230000
DTSTART;TZID=UTC:20191231T230000
DTEND;TZID=UTC:20200101T010000
DTSTAMP:20191231T230000Z
DTSTART:20191231T230000Z
DTEND:20200101T010000Z
DESCRIPTION:With balloons\, clowns and stuff\nBring a dog\, bring a frog
LOCATION:Party Lane 1A\, 1337 Funtown
END:VEVENT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ PRODID:Spatie calendar-links
BEGIN:VEVENT
UID:47e044bc36ced4538c62fc17c3ba087b
SUMMARY:Birthday
DTSTAMP;TZID=20180201
DTSTART:20180201
DTSTAMP:20180201Z
DTSTART:20180201Z
DURATION:P5D
DESCRIPTION:With balloons\, clowns and stuff\nBring a dog\, bring a frog
LOCATION:Party Lane 1A\, 1337 Funtown
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ PRODID:Spatie calendar-links
BEGIN:VEVENT
UID:94ab75add84a67c019eae57539658036
SUMMARY:Birthday
DTSTAMP;TZID=UTC:20180201T090000
DTSTART;TZID=UTC:20180201T090000
DTEND;TZID=UTC:20180201T180000
DTSTAMP:20180201T090000Z
DTSTART:20180201T090000Z
DTEND:20180201T180000Z
DESCRIPTION:With balloons\, clowns and stuff\nBring a dog\, bring a frog
LOCATION:Party Lane 1A\, 1337 Funtown
END:VEVENT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ PRODID:Spatie calendar-links
BEGIN:VEVENT
UID:aaf6b0d9a2c43d4a1c803a8c80793a08
SUMMARY:Birthday
DTSTAMP;TZID=20180201
DTSTART:20180201
DTSTAMP:20180201Z
DTSTART:20180201Z
DURATION:P1D
DESCRIPTION:With balloons\, clowns and stuff\nBring a dog\, bring a frog
LOCATION:Party Lane 1A\, 1337 Funtown
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ PRODID:Spatie calendar-links
BEGIN:VEVENT
UID:random-uid
SUMMARY:Birthday
DTSTAMP;TZID=UTC:20180201T090000
DTSTART;TZID=UTC:20180201T090000
DTEND;TZID=UTC:20180201T180000
DTSTAMP:20180201T090000Z
DTSTART:20180201T090000Z
DTEND:20180201T180000Z
DESCRIPTION:With balloons\, clowns and stuff\nBring a dog\, bring a frog
LOCATION:Party Lane 1A\, 1337 Funtown
END:VEVENT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ PRODID:Spatie calendar-links
BEGIN:VEVENT
UID:94ab75add84a67c019eae57539658036
SUMMARY:Birthday
DTSTAMP;TZID=UTC:20180201T090000
DTSTART;TZID=UTC:20180201T090000
DTEND;TZID=UTC:20180201T180000
DTSTAMP:20180201T090000Z
DTSTART:20180201T090000Z
DTEND:20180201T180000Z
DESCRIPTION:With balloons\, clowns and stuff\nBring a dog\, bring a frog
LOCATION:Party Lane 1A\, 1337 Funtown
END:VEVENT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ PRODID:Spatie calendar-links
BEGIN:VEVENT
UID:94ab75add84a67c019eae57539658036
SUMMARY:Birthday
DTSTAMP;TZID=UTC:20180201T090000
DTSTART;TZID=UTC:20180201T090000
DTEND;TZID=UTC:20180201T180000
DTSTAMP:20180201T090000Z
DTSTART:20180201T090000Z
DTEND:20180201T180000Z
DESCRIPTION:With balloons\, clowns and stuff\nBring a dog\, bring a frog
LOCATION:Party Lane 1A\, 1337 Funtown
END:VEVENT
Expand Down

0 comments on commit eccc260

Please sign in to comment.