calendar-link
Advanced tools
Comparing version 2.6.0 to 2.6.1
@@ -0,1 +1,10 @@ | ||
## v2.6.1 (2024-07-31) | ||
[๐ Release notes](https://github.com/AnandChowdhary/calendar-link/releases/tag/v2.6.1) ยท [๐ป Compare](https://github.com/AnandChowdhary/calendar-link/compare/v2.6.0...v2.6.1) ยท [๐ Tag](https://github.com/AnandChowdhary/calendar-link/tree/v2.6.1) ยท ๐๏ธ Archive ([zip](https://github.com/AnandChowdhary/calendar-link/archive/v2.6.1.zip) ยท [tar.gz](https://github.com/AnandChowdhary/calendar-link/archive/v2.6.1.tar.gz)) | ||
### ๐ Bug fixes | ||
- [`6da873c`](https://github.com/AnandChowdhary/calendar-link/commit/6da873c) Fix Snapshot Tests for ICS Links (#600) | ||
(Issues: [`#600`](https://github.com/AnandChowdhary/calendar-link/issues/600)) | ||
## v2.6.0 (2023-09-29) | ||
@@ -2,0 +11,0 @@ |
@@ -14,61 +14,70 @@ "use strict"; | ||
]) { | ||
describe(`${service.name} service`, () => { }); | ||
test(`generate a ${service.name} link`, () => { | ||
const event = { | ||
title: "Birthday party", | ||
start: "2019-12-29", | ||
duration: [2, "hour"], | ||
}; | ||
const link = service(event); | ||
expect(link).toMatchSnapshot(); | ||
beforeAll(() => { | ||
jest.useFakeTimers("modern"); | ||
jest.setSystemTime(new Date("2019-12-28T12:00:00.000Z")); | ||
jest.spyOn(global.Math, "random").mockReturnValue(0.12345); | ||
}); | ||
test(`generate a ${service.name} link with time & timezone`, () => { | ||
const event = { | ||
title: "Birthday party", | ||
start: "2019-12-29T12:00:00.000+01:00", | ||
duration: [2, "hour"], | ||
}; | ||
const link = service(event); | ||
expect(link).toMatchSnapshot(); | ||
afterAll(() => { | ||
jest.useRealTimers(); | ||
}); | ||
test(`generate an all day ${service.name} link`, () => { | ||
const event = { | ||
title: "Birthday party", | ||
start: "2019-12-29", | ||
allDay: true, | ||
}; | ||
const link = service(event); | ||
expect(link).toMatchSnapshot(); | ||
describe(`${service.name} service`, () => { | ||
test(`generate a ${service.name} link`, () => { | ||
const event = { | ||
title: "Birthday party", | ||
start: "2019-12-29", | ||
duration: [2, "hour"], | ||
}; | ||
const link = service(event); | ||
expect(link).toMatchSnapshot(); | ||
}); | ||
test(`generate a ${service.name} link with time & timezone`, () => { | ||
const event = { | ||
title: "Birthday party", | ||
start: "2019-12-29T12:00:00.000+01:00", | ||
duration: [2, "hour"], | ||
}; | ||
const link = service(event); | ||
expect(link).toMatchSnapshot(); | ||
}); | ||
test(`generate an all day ${service.name} link`, () => { | ||
const event = { | ||
title: "Birthday party", | ||
start: "2019-12-29", | ||
allDay: true, | ||
}; | ||
const link = service(event); | ||
expect(link).toMatchSnapshot(); | ||
}); | ||
test(`generate a multi day ${service.name} link`, () => { | ||
const event = { | ||
title: "Birthday party", | ||
start: "2019-12-29", | ||
end: "2020-01-12", | ||
allDay: true, | ||
}; | ||
const link = service(event); | ||
expect(link).toMatchSnapshot(); | ||
}); | ||
test(`generate a recurring ${service.name} link`, () => { | ||
const event = { | ||
title: "Birthday party", | ||
start: "2019-12-29", | ||
duration: [2, "hour"], | ||
rRule: "FREQ=YEARLY;INTERVAL=1", | ||
}; | ||
const link = service(event); | ||
expect(link).toMatchSnapshot(); | ||
}); | ||
test(`generate a ${service.name} link with guests`, () => { | ||
const event = { | ||
title: "Birthday party", | ||
start: "2019-12-29", | ||
duration: [2, "hour"], | ||
guests: ["hello@example.com", "another@example.com"], | ||
}; | ||
const link = service(event); | ||
expect(link).toMatchSnapshot(); | ||
}); | ||
}); | ||
test(`generate a multi day ${service.name} link`, () => { | ||
const event = { | ||
title: "Birthday party", | ||
start: "2019-12-29", | ||
end: "2020-01-12", | ||
allDay: true, | ||
}; | ||
const link = service(event); | ||
expect(link).toMatchSnapshot(); | ||
}); | ||
test(`generate a recurring ${service.name} link`, () => { | ||
const event = { | ||
title: "Birthday party", | ||
start: "2019-12-29", | ||
duration: [2, "hour"], | ||
rRule: "FREQ=YEARLY;INTERVAL=1", | ||
}; | ||
const link = service(event); | ||
expect(link).toMatchSnapshot(); | ||
}); | ||
test(`generate a ${service.name} link with guests`, () => { | ||
const event = { | ||
title: "Birthday party", | ||
start: "2019-12-29", | ||
duration: [2, "hour"], | ||
guests: ["hello@example.com", "another@example.com"], | ||
}; | ||
const link = service(event); | ||
expect(link).toMatchSnapshot(); | ||
}); | ||
} | ||
//# sourceMappingURL=index.spec.js.map |
{ | ||
"name": "calendar-link", | ||
"version": "2.6.0", | ||
"version": "2.6.1", | ||
"description": "๐ Calendar link generator for popular services, like Google, Outlook, and Yahoo.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
207154
560