We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46e0245 commit 08ba385Copy full SHA for 08ba385
test/converter.test.js
@@ -223,6 +223,13 @@ describe('converter', () => {
223
expect(converted[0]).toEqual(input);
224
});
225
226
+ // https://github.com/AdguardTeam/FiltersCompiler/issues/260
227
+ it('prevents prevent-canvas scriptlet from being converted to empty string', () => {
228
+ const input = "aceee.org#%#//scriptlet('prevent-canvas', '2d')";
229
+ const converted = convertRulesToAdgSyntax([input]);
230
+ expect(converted[0]).toEqual(input);
231
+ });
232
+
233
describe('convertRulesToAdgSyntax - non-basic modifiers', () => {
234
it.each([
235
{
0 commit comments