Skip to content

The open alternative to Salesforce, designed for AI.

551 B
Raw Blame
import { describe, expect, it } from 'vitest';

import { linkedinHealthCheckHandler } from 'src/logic-functions/linkedin-health-check';

describe('linkedinHealthCheckHandler', () => {
  it('points members to their LinkedIn app preferences', async () => {
    process.env.APPLICATION_ID = 'application-id';

    await expect(linkedinHealthCheckHandler()).resolves.toMatchObject({
      status: 'INFO',
      action: {
        label: 'Open app preferences',
        location: '/settings/accounts/applications/application-id',
      },
    });
  });
});