mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 08:47:44 +00:00
22 lines
574 B
TypeScript
22 lines
574 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2025 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import { describe, it, expect } from 'vitest';
|
|
import { uninstallCommand } from './uninstall.js';
|
|
import yargs from 'yargs';
|
|
|
|
describe('extensions uninstall command', () => {
|
|
it('should fail if no source is provided', () => {
|
|
const validationParser = yargs([])
|
|
.locale('en')
|
|
.command(uninstallCommand)
|
|
.fail(false);
|
|
expect(() => validationParser.parse('uninstall')).toThrow(
|
|
'Not enough non-option arguments: got 0, need at least 1',
|
|
);
|
|
});
|
|
});
|