mirror of
https://github.com/andy-stack/vaultkeeper-ai.git
synced 2026-07-22 06:42:03 +00:00
test: add memory settings to mock configurations
Updated all test mock settings objects to include enableMemories and allowUpdatingMemories fields with default values
This commit is contained in:
parent
5a3900049b
commit
0ffaa95a57
5 changed files with 30 additions and 10 deletions
|
|
@ -99,7 +99,9 @@ describe('SettingsService', () => {
|
|||
exclusions: [],
|
||||
userInstruction: '',
|
||||
searchResultsLimit: 15,
|
||||
snippetSizeLimit: 300
|
||||
snippetSizeLimit: 300,
|
||||
enableMemories: false,
|
||||
allowUpdatingMemories: true
|
||||
};
|
||||
settingsService = new SettingsService(loadedSettings);
|
||||
});
|
||||
|
|
@ -140,7 +142,9 @@ describe('SettingsService', () => {
|
|||
exclusions: [],
|
||||
userInstruction: '',
|
||||
searchResultsLimit: 15,
|
||||
snippetSizeLimit: 300
|
||||
snippetSizeLimit: 300,
|
||||
enableMemories: false,
|
||||
allowUpdatingMemories: true
|
||||
};
|
||||
settingsService = new SettingsService(loadedSettings);
|
||||
|
||||
|
|
@ -161,7 +165,9 @@ describe('SettingsService', () => {
|
|||
exclusions: [],
|
||||
userInstruction: '',
|
||||
searchResultsLimit: 15,
|
||||
snippetSizeLimit: 300
|
||||
snippetSizeLimit: 300,
|
||||
enableMemories: false,
|
||||
allowUpdatingMemories: true
|
||||
};
|
||||
settingsService = new SettingsService(loadedSettings);
|
||||
|
||||
|
|
@ -182,7 +188,9 @@ describe('SettingsService', () => {
|
|||
exclusions: [],
|
||||
userInstruction: '',
|
||||
searchResultsLimit: 15,
|
||||
snippetSizeLimit: 300
|
||||
snippetSizeLimit: 300,
|
||||
enableMemories: false,
|
||||
allowUpdatingMemories: true
|
||||
};
|
||||
settingsService = new SettingsService(loadedSettings);
|
||||
|
||||
|
|
@ -228,7 +236,9 @@ describe('SettingsService', () => {
|
|||
exclusions: [],
|
||||
userInstruction: '',
|
||||
searchResultsLimit: 15,
|
||||
snippetSizeLimit: 300
|
||||
snippetSizeLimit: 300,
|
||||
enableMemories: false,
|
||||
allowUpdatingMemories: true
|
||||
};
|
||||
settingsService = new SettingsService(loadedSettings);
|
||||
});
|
||||
|
|
@ -283,7 +293,9 @@ describe('SettingsService', () => {
|
|||
exclusions: ['node_modules'],
|
||||
userInstruction: 'Be helpful',
|
||||
searchResultsLimit: 15,
|
||||
snippetSizeLimit: 300
|
||||
snippetSizeLimit: 300,
|
||||
enableMemories: false,
|
||||
allowUpdatingMemories: true
|
||||
};
|
||||
settingsService = new SettingsService(loadedSettings);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -99,7 +99,9 @@ const mockSettings: IVaultkeeperAISettings = {
|
|||
exclusions: [],
|
||||
userInstruction: '',
|
||||
searchResultsLimit: 15,
|
||||
snippetSizeLimit: 300
|
||||
snippetSizeLimit: 300,
|
||||
enableMemories: false,
|
||||
allowUpdatingMemories: true
|
||||
};
|
||||
|
||||
let settingsService: SettingsService;
|
||||
|
|
|
|||
|
|
@ -59,7 +59,9 @@ const mockSettings: IVaultkeeperAISettings = {
|
|||
exclusions: [],
|
||||
userInstruction: '',
|
||||
searchResultsLimit: 15,
|
||||
snippetSizeLimit: 300
|
||||
snippetSizeLimit: 300,
|
||||
enableMemories: false,
|
||||
allowUpdatingMemories: true
|
||||
};
|
||||
|
||||
const mockPlugin = {
|
||||
|
|
|
|||
|
|
@ -61,7 +61,9 @@ const mockSettings: IVaultkeeperAISettings = {
|
|||
exclusions: [],
|
||||
userInstruction: '',
|
||||
searchResultsLimit: 15,
|
||||
snippetSizeLimit: 300
|
||||
snippetSizeLimit: 300,
|
||||
enableMemories: false,
|
||||
allowUpdatingMemories: true
|
||||
};
|
||||
|
||||
let settingsService: SettingsService;
|
||||
|
|
|
|||
|
|
@ -58,7 +58,9 @@ const mockSettings: IVaultkeeperAISettings = {
|
|||
exclusions: [],
|
||||
userInstruction: '',
|
||||
searchResultsLimit: 15,
|
||||
snippetSizeLimit: 300
|
||||
snippetSizeLimit: 300,
|
||||
enableMemories: false,
|
||||
allowUpdatingMemories: true
|
||||
};
|
||||
|
||||
const mockPlugin = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue