From 3697048c6e09705d3230187ec1a131d014d3bb0c Mon Sep 17 00:00:00 2001 From: multipleof4 Date: Fri, 11 Sep 2026 19:41:20 -0700 Subject: [PATCH] Remove obsolete metadata from parser tests --- tests/parser.test.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/parser.test.js b/tests/parser.test.js index d98361e..cb906c4 100644 --- a/tests/parser.test.js +++ b/tests/parser.test.js @@ -12,11 +12,9 @@ test('parseMeta extracts only OpenScript metadata', () => { // @version 2.1.0 // @description Sample description // @author Alice -// @namespace legacy // @match https://example.com/* // @include https://ignored.example/* // @run-at document-start -// @grant none // @require https://cdn.example/library.js // ==/UserScript== `); @@ -139,7 +137,7 @@ test('getBoilerplate is wrapper-free and minimalist', () => { const template = getBoilerplate('My Script'); assert.ok(template.includes('// @name My Script')); assert.ok(template.includes("console.log('Running on', location.hostname);")); - for (const legacy of ['@namespace', '@grant', '@author', '(function']) + for (const legacy of ['@author', '(function']) assert.ok(!template.includes(legacy)); assert.ok(!template.includes('@version')); });