mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-06-10 19:37:17 -07:00
b37a01bdfb
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
19 lines
474 B
TypeScript
19 lines
474 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2025 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import { expect, describe, it } from 'vitest';
|
|
import { hydrateString } from './variables.js';
|
|
|
|
describe('hydrateString', () => {
|
|
it('should replace a single variable', () => {
|
|
const context = {
|
|
extensionPath: 'path/my-extension',
|
|
};
|
|
const result = hydrateString('Hello, ${extensionPath}!', context);
|
|
expect(result).toBe('Hello, path/my-extension!');
|
|
});
|
|
});
|