+10
-1
@@ -2,7 +2,7 @@ import test from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
import { spawn } from 'node:child_process';
|
||||
import { chmod, cp, mkdir, mkdtemp, readFile, rm, writeFile } from 'node:fs/promises';
|
||||
import { existsSync } from 'node:fs';
|
||||
import { existsSync, readFileSync } from 'node:fs';
|
||||
import os from 'node:os';
|
||||
import path from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
@@ -127,3 +127,12 @@ exit 0
|
||||
await rm(work, { recursive: true, force: true });
|
||||
}
|
||||
});
|
||||
|
||||
test('first-run keeps TTS enabled even when the preview is skipped', () => {
|
||||
const source = readFileSync(new URL('../packaging/first-run.sh', import.meta.url), 'utf8');
|
||||
assert.match(source, /Play a TTS preview now\?/);
|
||||
assert.match(source, /TTS_ENABLED=true/);
|
||||
assert.doesNotMatch(source, /Enable TTS preview\?/);
|
||||
assert.doesNotMatch(source, /TTS_ENABLED=false/);
|
||||
assert.match(source, /spoken replies remain enabled/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user