Scheduling infrastructure for absolutely everyone.
import { describe, test, expect } from "vitest";
import type { SelectedCalendar } from "@calcom/prisma/client";
const _mockSelectedCalendar: SelectedCalendar = {
id: "test-calendar-id",
userId: 1,
credentialId: 1,
integration: "office365_calendar",
externalId: "[email protected]",
eventTypeId: null,
delegationCredentialId: null,
googleChannelId: null,
googleChannelKind: null,
googleChannelResourceId: null,
googleChannelResourceUri: null,
googleChannelExpiration: null,
error: null,
lastErrorAt: null,
watchAttempts: 0,
maxAttempts: 3,
unwatchAttempts: 0,
createdAt: new Date(),
updatedAt: new Date(),
channelId: "test-channel-id",
channelKind: "web_hook",
channelResourceId: "test-resource-id",
channelResourceUri: "test-resource-uri",
channelExpiration: new Date(Date.now() + 86400000),
syncSubscribedAt: new Date(),
syncSubscribedErrorAt: null,
syncSubscribedErrorCount: 0,
syncToken: "test-sync-token",
syncedAt: new Date(),
syncErrorAt: null,
syncErrorCount: 0,
};
const _mockCredential = {
id: 1,
key: { access_token: "test-token" },
user: { email: "[email protected]" },
delegatedTo: null,
};
describe("Office365CalendarSubscriptionAdapter", () => {
test("should be a placeholder test", () => {
expect(true).toBe(true);
});
});