mirror of
https://github.com/outline/outline.git
synced 2026-11-21 05:24:03 +03:00
* chore: Move plugin-specific integration code into plugins Core no longer imports from or names the settings of individual plugins. Plugins now register mention providers, issue status icons, instance URLs, settings keys, settings and import schemas, and OAuth clients through hooks. * fix: Recompute embed instance URLs after plugins load and match legacy issue icons by URL * fix: Skip logo upload jobs queued without a settings path * chore: Choose issue status icons from the unfurl state
26 lines
866 B
TypeScript
26 lines
866 B
TypeScript
import { IntegrationService, IntegrationType } from "@shared/types";
|
|
import { buildIntegration, buildUser } from "@server/test/factories";
|
|
import UploadIntegrationLogoTask from "./UploadIntegrationLogoTask";
|
|
|
|
describe("UploadIntegrationLogoTask", () => {
|
|
it("should not change settings for jobs without a settings path", async () => {
|
|
const user = await buildUser();
|
|
const settings = { url: "https://example.com" };
|
|
const integration = await buildIntegration({
|
|
userId: user.id,
|
|
teamId: user.teamId,
|
|
service: IntegrationService.Linear,
|
|
type: IntegrationType.Embed,
|
|
settings,
|
|
});
|
|
|
|
await new UploadIntegrationLogoTask().perform({
|
|
integrationId: integration.id,
|
|
logoUrl: "https://example.com/logo.png",
|
|
});
|
|
|
|
await integration.reload();
|
|
expect(integration.settings).toEqual(settings);
|
|
});
|
|
});
|