Skip to content

Commit

Permalink
Fix running tests after kewisch#470
Browse files Browse the repository at this point in the history
  • Loading branch information
kewisch committed Jan 5, 2022
1 parent 78eb044 commit 31cf88d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions test/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,17 @@

/* cross require */
testSupport.requireICAL = function() {
if (typeof global !== "undefined") {
global.ICAL = {};
let crossGlobal = typeof global == "undefined" ? window : global;

if (typeof crossGlobal !== "undefined") {
if (typeof crossGlobal.ICAL != "undefined") {
return;
}
crossGlobal.ICAL = {};
}

var files = [
'module',
'helpers',
'recur_expansion',
'event',
Expand Down

0 comments on commit 31cf88d

Please sign in to comment.