diff options
Diffstat (limited to 'desktop/assistant/test_presets.js')
| -rw-r--r-- | desktop/assistant/test_presets.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/desktop/assistant/test_presets.js b/desktop/assistant/test_presets.js index e4a18f4..c2cbcf3 100644 --- a/desktop/assistant/test_presets.js +++ b/desktop/assistant/test_presets.js @@ -32,9 +32,11 @@ assert.deepStrictEqual(labels(files("image")), ["Describe", "Extract text", "Wha assert.deepStrictEqual(labels(files("video")), []); assert.deepStrictEqual(labels([]), []); -// Every prompt asks for the document's language. -for (const p of P.DEFAULTS) - assert.ok(P.prompt(p).endsWith(" Answer in the language of the document."), p.label); +// A prompt is sent as written; the defaults ask for the document's language. +for (const p of P.DEFAULTS) { + assert.strictEqual(P.prompt(p), p.prompt, p.label); + assert.ok(p.prompt.endsWith(" Answer in the language of the document."), p.label); +} // A saved list is used when valid; anything else reads as the defaults. const mine = [{ label: "Mine", prompt: "Do it.", kinds: ["pdf"] }]; |
