test note refine correction policy

This commit is contained in:
Daniel 2026-05-08 07:46:39 +02:00
parent 957ebc7265
commit 6e7e096bd5

View file

@ -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 = [