29 lines · 1.1 KB · TypeScript
RawDownload
import { expect, it } from "@effect/vitest"; import { googleOpenApiPresets, googleStandardUserOAuthPresets } from "./presets"; it("keeps Select all limited to Google services that can use normal user OAuth", () => {  const standardIds = new Set(googleStandardUserOAuthPresets.map((preset) => preset.id));   expect(standardIds).toContain("google-calendar");  expect(standardIds).toContain("google-gmail");  expect(standardIds).toContain("google-tasks");  expect(standardIds).toContain("google-people");  expect(standardIds).toContain("google-search-console");   expect(standardIds).not.toContain("google-youtube-data");  expect(standardIds).not.toContain("google-cloud-resource-manager");  expect(standardIds).not.toContain("google-chat");  expect(standardIds).not.toContain("google-keep");  expect(standardIds).not.toContain("google-admin-directory");  expect(standardIds).not.toContain("google-admin-reports");}); it("classifies every Google service for bundle OAuth UX", () => {  expect(    googleOpenApiPresets.map((preset) => ({      id: preset.id,      oauthAudience: preset.oauthAudience,    })),  ).toMatchSnapshot();});

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t