chore: 整理 third-party Dark Reader 目录并移除本地说明文件跟踪

This commit is contained in:
2026-08-08 17:38:08 +08:00
parent 202ab537d1
commit 0bb552b026
1004 changed files with 115066 additions and 20081 deletions
+12
View File
@@ -0,0 +1,12 @@
import {readFile} from 'node:fs/promises';
import {join} from 'node:path';
import {prepareCSPMV3} from '../../../src/utils/csp';
describe('Check that CSP matches expected one', () => {
it('CSP should match', async () => {
const file = join(__dirname, '../../../src/manifest-chrome-mv3.json');
const manifest: chrome.runtime.Manifest = JSON.parse(await readFile(file, {encoding: 'utf-8'}));
expect(manifest.content_security_policy).toEqual(prepareCSPMV3());
});
});