'use strict'; const assert = require('node:assert/strict'); const fs = require('node:fs'); const path = require('node:path'); const test = require('node:test'); const root = path.resolve(__dirname, '..', '..'); const read = (file) => fs.readFileSync(path.join(root, file), 'utf8'); test('featured box shows only the icon image/video buttons and no slide button', () => { const featured = read('templates/parts/submit/featured.php'); // Like the reference theme, the image button also serves slide covers via // multi-select, so it renders whenever either capability is granted. assert.match( featured, /if \(\$can_image \|\| \$can_slide\) : \?>\s*\n\s*