mirror of
https://github.com/jackwener/OpenCLI.git
synced 2026-09-14 18:25:42 +08:00
e9867dcab0
* feat(extension): v1.6.8 — remove unused scripting permission, refresh icons - Remove unused `scripting` permission (Chrome Web Store rejection fix) - Bump version 1.6.7 → 1.6.8 - Redesign icons with neon gradient style (pure SVG paths, glow effect) * revert icons to original, fix package.json version to 1.6.8 * test: remove stale scripting permission assertion
18 lines
636 B
TypeScript
18 lines
636 B
TypeScript
import * as fs from 'node:fs/promises';
|
|
import * as path from 'node:path';
|
|
import { describe, expect, it } from 'vitest';
|
|
|
|
describe('extension manifest regression', () => {
|
|
it('keeps host permissions required by chrome.cookies.getAll', async () => {
|
|
const manifestPath = path.resolve(process.cwd(), 'extension', 'manifest.json');
|
|
const raw = await fs.readFile(manifestPath, 'utf8');
|
|
const manifest = JSON.parse(raw) as {
|
|
permissions?: string[];
|
|
host_permissions?: string[];
|
|
};
|
|
|
|
expect(manifest.permissions).toContain('cookies');
|
|
expect(manifest.host_permissions).toContain('<all_urls>');
|
|
});
|
|
});
|