mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-25 08:48:08 +02:00
rename klo to ktx
This commit is contained in:
parent
1a42152e6f
commit
3ce510b55b
704 changed files with 10205 additions and 10255 deletions
|
|
@ -8,7 +8,7 @@ describe('setup secrets', () => {
|
|||
let tempDir: string;
|
||||
|
||||
beforeEach(async () => {
|
||||
tempDir = await mkdtemp(join(tmpdir(), 'klo-setup-secrets-'));
|
||||
tempDir = await mkdtemp(join(tmpdir(), 'ktx-setup-secrets-'));
|
||||
});
|
||||
|
||||
afterEach(async () => {
|
||||
|
|
@ -26,11 +26,11 @@ describe('setup secrets', () => {
|
|||
value: 'sk-ant-test',
|
||||
});
|
||||
|
||||
expect(result).toBe(`file:${resolve(tempDir, '.klo/secrets/anthropic-api-key')}`);
|
||||
await expect(readFile(join(tempDir, '.klo/secrets/anthropic-api-key'), 'utf-8')).resolves.toBe('sk-ant-test\n');
|
||||
expect(result).toBe(`file:${resolve(tempDir, '.ktx/secrets/anthropic-api-key')}`);
|
||||
await expect(readFile(join(tempDir, '.ktx/secrets/anthropic-api-key'), 'utf-8')).resolves.toBe('sk-ant-test\n');
|
||||
|
||||
if (process.platform !== 'win32') {
|
||||
const mode = (await stat(join(tempDir, '.klo/secrets/anthropic-api-key'))).mode & 0o777;
|
||||
const mode = (await stat(join(tempDir, '.ktx/secrets/anthropic-api-key'))).mode & 0o777;
|
||||
expect(mode).toBe(0o600);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue