Skip to content

Chrome DevTools for coding agents

756 B
Raw Blame
/**
 * @license
 * Copyright 2025 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */

import fs from 'node:fs';
import path from 'node:path';
import {describe, it} from 'node:test';

describe('THIRD_PARTY_NOTICES', () => {
  it('matches snapshot', t => {
    const noticesPath = path.resolve(
      import.meta.dirname,
      '../src/third_party/THIRD_PARTY_NOTICES',
    );
    if (!fs.existsSync(noticesPath)) {
      throw new Error(
        'THIRD_PARTY_NOTICES does not exist, run `npm run build`',
      );
    }
    const content = fs.readFileSync(noticesPath, 'utf-8');
    const normalizedContent = content
      .replace(/^Version: .*$/gm, 'Version: <VERSION>')
      .replaceAll('\r', '');
    t.assert.snapshot(normalizedContent);
  });
});