Team Ai
Modelpublic

Felipe97/llama-cpp-compiled

sourceHugging Faceupdated 21d agoView on Hugging Face
0likes1.2kdownloads
settings-private-fields.test.ts13 linesDownload Raw Back to unit
1import { SETTINGS_CHAT_SECTIONS, SETTINGS_KEYS } from '$lib/constants';2import { describe, expect, it } from 'vitest';3 4describe('checkApiKeyField', () => {5	it('should have isPrivate set to true', () => {6		const fields = SETTINGS_CHAT_SECTIONS.flatMap((section) => section.fields);7		const apiKeyField = fields.find((field) => field?.key === SETTINGS_KEYS.API_KEY);8 9		expect(apiKeyField).toBeDefined();10		expect(apiKeyField?.isPrivate).toBe(true);11	});12});13