test note refine correction policy
This commit is contained in:
parent
957ebc7265
commit
6e7e096bd5
1 changed files with 12 additions and 0 deletions
|
|
@ -27,6 +27,18 @@ test('template settings do not offer new custom AI memories', () => {
|
|||
assert.match(memories, /window\.getUserMemoryContext = function\(\)/);
|
||||
});
|
||||
|
||||
test('note refine corrections still call AI without storing learning memories', () => {
|
||||
const app = read('public/js/app.js');
|
||||
const refine = read('src/routes/refine.js');
|
||||
assert.match(app, /function refineDocument\(outputElementId, inputElementId\)/);
|
||||
assert.match(app, /fetch\('\/api\/refine'/);
|
||||
assert.match(app, /currentDocument: docText, instructions: instructions/);
|
||||
assert.match(refine, /router\.post\('\/refine'/);
|
||||
assert.match(refine, /PROMPTS\.refine \+ INJECTION_GUARD/);
|
||||
assert.match(refine, /sourceContext/);
|
||||
assert.doesNotMatch(refine, /INSERT INTO user_memories|correction_/);
|
||||
});
|
||||
|
||||
test('browser Whisper is removed from public runtime and user settings', () => {
|
||||
assert.equal(fs.existsSync(path.join(root, 'public/js/browserWhisper.js')), false);
|
||||
const publicRuntimeFiles = [
|
||||
|
|
|
|||
Loading…
Reference in a new issue