const { test } = require('node:test'); const assert = require('node:assert/strict'); const { wheelContent,categoryOf } = require('../src/main/wheel-options.cjs'); test('all advertised file categories expose valid bounded radial actions',()=>{ for(const file of ['photo.HEIC','video.mkv','audio.flac','paper.pdf','notes.txt','table.xlsx','unknown.bin']) { for(const mode of ['quick','tools']) { const options=wheelContent([file],mode).options; assert.ok(options.length>0&&options.length<=7); assert.equal(new Set(options.map(x=>x.id)).size,options.length); for(const option of options)assert.ok(option.op&&option.label); } } assert.equal(categoryOf('photo.HEIC'),'image');assert.equal(categoryOf('old.doc'),'other'); }); test('PDF password removal stays available without guessing encryption from bytes',()=>{ assert.ok(wheelContent(['encrypted.pdf'],'tools').options.some(x=>x.id==='password-remove')); });