| /** | |
| * @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([]).command(uninstallCommand).fail(false); | |
| expect(() => validationParser.parse('uninstall')).toThrow( | |
| 'Not enough non-option arguments: got 0, need at least 1', | |
| ); | |
| }); | |
| }); | |