diff --git a/platform/npm/tests/snfe.js b/platform/npm/tests/snfe.js index eb5d2d4cc..c6de0aeac 100644 --- a/platform/npm/tests/snfe.js +++ b/platform/npm/tests/snfe.js @@ -287,6 +287,18 @@ describe('SNFE', () => { }); assert(engine.isBlockImportant()); }); + + it('should block all except stylesheets', async () => { + await engine.useLists([ + { name: 'test', raw: '||example.com^$~stylesheet,all' }, + ]); + const r = engine.matchRequest({ + originURL: 'https://www.example.com/', + type: 'stylesheet', + url: 'https://www.example.com/', + }); + assert.strictEqual(r, 0); + }); }); }); }