Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #58 from proshunsuke/v16
Browse files Browse the repository at this point in the history
V16
  • Loading branch information
proshunsuke authored Nov 27, 2021
2 parents fb22fac + 2fcae6a commit 5eda15e
Show file tree
Hide file tree
Showing 5 changed files with 1,479 additions and 1,524 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ build: install
ENV=production yarn webpack

watch:
ENV=local yarn webpack watch
SITE_NAME=$(SITE_NAME) ENV=local yarn webpack watch

server/keyaki:
yarn run functions-framework --target=getKeyakiSchedule --source=./gcpFunctions/getKeyakiSchedule --port 8080
Expand All @@ -28,7 +28,7 @@ run:
yarn clasp run execute

run/local:
SITE_NAME=$(SITE_NAME) node -e 'require("./dist/index.js");global.setSchedule();'
node -e 'require("./dist/index.js");global.setSchedule();'

open:
yarn clasp open
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ Auto Updating Google Calendar using google apps script
---|---
アルバム|https://calendar.google.com/calendar/ical/[email protected]/public/basic.ics
イベント|https://calendar.google.com/calendar/ical/[email protected]/public/basic.ics
グッズ|https://calendar.google.com/calendar/ical/9p6fqjmf2s1k6ci1clmou1l7bg%40group.calendar.google.com/public/basic.ics
シングル|https://calendar.google.com/calendar/ical/[email protected]/public/basic.ics
その他|https://calendar.google.com/calendar/ical/[email protected]/public/basic.ics
テレビ|https://calendar.google.com/calendar/ical/[email protected]/public/basic.ics
Expand Down
4 changes: 4 additions & 0 deletions src/sites/sakurazaka/sakuraObjects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ export const sakuraCalendarIds: SiteCalendarInterface[] = [
type: 'イベント',
calendarId: '[email protected]',
},
{
type: 'グッズ',
calendarId: '[email protected]',
},
{
type: 'シングル',
calendarId: '[email protected]',
Expand Down
2 changes: 2 additions & 0 deletions tests/calendar.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ describe('deleteEvent', (): void => {
const calendarEventMock: jest.Mock = jest.fn(() => ({
deleteEvent: deleteEventMock,
}));
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
Calendar.deleteEvent(calendarEventMock());
expect(deleteEventMock).toBeCalledTimes(1);
});
Expand All @@ -67,6 +68,7 @@ describe('deleteEvent', (): void => {
const calendarEventMock: jest.Mock = jest.fn(() => ({
deleteEvent: deleteEventMock,
}));
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
Calendar.deleteEvent(calendarEventMock());
expect(Utilities.sleep).not.toBeCalled();
});
Expand Down
Loading

0 comments on commit 5eda15e

Please sign in to comment.