mirror of
https://github.com/Shik3i/KoalaSync.git
synced 2026-08-25 10:07:41 +00:00
fix(extension): support Google Drive video frames
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { isTabUrlFiltered } from './tab-filter.js';
|
||||
|
||||
const blacklist = ['google.com', 'mail.google.com'];
|
||||
const allowlist = ['drive.google.com'];
|
||||
|
||||
describe('tab URL filtering', () => {
|
||||
it('keeps Google Drive selectable despite the google.com parent-domain rule', () => {
|
||||
expect(isTabUrlFiltered(
|
||||
'https://drive.google.com/drive/u/1/search?q=mp4',
|
||||
blacklist,
|
||||
allowlist
|
||||
)).toBe(false);
|
||||
});
|
||||
|
||||
it('continues to filter other Google subdomains', () => {
|
||||
expect(isTabUrlFiltered('https://mail.google.com/mail/u/0/', blacklist, allowlist)).toBe(true);
|
||||
expect(isTabUrlFiltered('https://www.google.com/search?q=video', blacklist, allowlist)).toBe(true);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user