Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

555 B
Raw Blame
import { describe, it, expect } from 'vitest';
import { extractScanVerdict, reportPathForId } from './malwareScanReports.js';

describe('malware scan reports', () => {
  it('accepts only an explicit markdown verdict heading', () => {
    expect(extractScanVerdict('## Verdict: DANGEROUS\nStatic finding')).toBe('DANGEROUS');
    expect(extractScanVerdict('A dependency says DANGEROUS in a comment')).toBeNull();
  });

  it('does not turn an arbitrary string into a report path', () => {
    expect(reportPathForId('../../private')).toBeNull();
  });
});