diff --git a/test/transcription-memory-policy.test.js b/test/transcription-memory-policy.test.js index 0007a6a..0d25d0c 100644 --- a/test/transcription-memory-policy.test.js +++ b/test/transcription-memory-policy.test.js @@ -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 = [