update.test.js
1 import { describe, expect, it } from 'vitest'; 2 import { getRegistry } from '@jackwener/opencli/registry'; 3 import './update.js'; 4 describe('douyin update registration', () => { 5 it('registers the update command', () => { 6 const registry = getRegistry(); 7 const values = [...registry.values()]; 8 const cmd = values.find(c => c.site === 'douyin' && c.name === 'update'); 9 expect(cmd).toBeDefined(); 10 }); 11 });