diff --git a/CHANGELOG.md b/CHANGELOG.md index 5336b6ac..26e8b860 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -41,6 +41,7 @@ Special thanks to the following contributors: @B1gG, @codac, @ezeholz, @khassel, - Fix fetch option httpsAgent to agent in calendar module (#466) - Fix module updatenotification which did not work for repos with many refs (#1907) - Fix config check failing when encountering let syntax ("Parsing error: Unexpected token config") +- Fix calendar debug check ## [2.15.0] - 2021-04-01 diff --git a/modules/default/calendar/debug.js b/modules/default/calendar/debug.js index f01bcc0d..f2d3a48e 100644 --- a/modules/default/calendar/debug.js +++ b/modules/default/calendar/debug.js @@ -5,6 +5,9 @@ * By Michael Teeuw https://michaelteeuw.nl * MIT Licensed. */ +// Alias modules mentioned in package.js under _moduleAliases. +require("module-alias/register"); + const CalendarFetcher = require("./calendarfetcher.js"); const url = "https://calendar.google.com/calendar/ical/pkm1t2uedjbp0uvq1o7oj1jouo%40group.calendar.google.com/private-08ba559f89eec70dd74bbd887d0a3598/basic.ics"; // Standard test URL @@ -26,11 +29,13 @@ const fetcher = new CalendarFetcher(url, fetchInterval, [], maximumEntries, maxi fetcher.onReceive(function (fetcher) { console.log(fetcher.events()); console.log("------------------------------------------------------------"); + process.exit(0); }); fetcher.onError(function (fetcher, error) { console.log("Fetcher error:"); console.log(error); + process.exit(1); }); fetcher.startFetch();