mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-13 12:14:00 +00:00
Type the saved config in the API write allowlist test
This commit is contained in:
1 parent
3dc5080058
commit
5b85eac858
1 file changed
+3
-1
@@ -135,7 +135,9 @@ describe('ApiWriteAllowlist', () => {
|
||||
|
||||
it('saves on top of the last saved config, not unsaved form edits', async () => {
|
||||
updateAgent.mockResolvedValue({ ok: true });
|
||||
const saved = { guardrails: { controls: [] } };
|
||||
const saved = { guardrails: { controls: [] } } as unknown as NonNullable<
|
||||
Agent['config']
|
||||
>;
|
||||
const draft = agent({
|
||||
config: { guardrails: { controls: [{ id: 'unsaved' }] } },
|
||||
} as unknown as Partial<Agent>);
|
||||
|
||||
Reference in new issue
Block a user