chore: 整理 third-party Dark Reader 目录并移除本地说明文件跟踪
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
describe('Modifying settings', () => {
|
||||
it('Modifying sync settings to contain long list', async () => {
|
||||
const newSettings = {
|
||||
enabledFor: [] as string[],
|
||||
disabledFor: [] as string[],
|
||||
syncSettings: true,
|
||||
};
|
||||
|
||||
// Cumulative length should be over the browser limit on record size
|
||||
for (let i = 0; i < 1000; i ++) {
|
||||
newSettings.disabledFor.push(`example${i}.com`);
|
||||
}
|
||||
|
||||
await backgroundUtils.changeSettings(newSettings);
|
||||
|
||||
const extensionData = await backgroundUtils.collectData();
|
||||
expect(extensionData.settings.syncSettings).toBe(true);
|
||||
expect(extensionData.settings.disabledFor.length).toBe(1000);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user