Download packages/cli/src/config/settingPaths.test.ts from SaylorTwift/gemini-cli: direct link, hf CLI and curl.
- Browser
- Download file 745 Bytes
-
https://huggingface.co/SaylorTwift/gemini-cli/resolve/main/packages/cli/src/config/settingPaths.test.ts
- Command line
-
hf download hf://SaylorTwift/gemini-cli/packages/cli/src/config/settingPaths.test.ts
-
curl -L -o settingPaths.test.ts https://huggingface.co/SaylorTwift/gemini-cli/resolve/main/packages/cli/src/config/settingPaths.test.ts
745 Bytes
| /** | |
| * @license | |
| * Copyright 2025 Google LLC | |
| * SPDX-License-Identifier: Apache-2.0 | |
| */ | |
| import { describe, it, expect } from 'vitest'; | |
| import { SettingPaths } from './settingPaths.js'; | |
| describe('SettingPaths', () => { | |
| it('should have the correct structure', () => { | |
| expect(SettingPaths).toEqual({ | |
| General: { | |
| PreferredEditor: 'general.preferredEditor', | |
| }, | |
| }); | |
| }); | |
| it('should be immutable', () => { | |
| expect(Object.isFrozen(SettingPaths)).toBe(false); // It's not frozen by default in JS unless Object.freeze is called, but it's `as const` in TS. | |
| // However, we can check if the values are correct. | |
| expect(SettingPaths.General.PreferredEditor).toBe( | |
| 'general.preferredEditor', | |
| ); | |
| }); | |
| }); | |