fix tests

This commit is contained in:
Felix Roos 2022-05-18 00:18:12 +02:00
parent 43c2f46196
commit 788a4c9143
2 changed files with 8 additions and 2 deletions

View file

@ -6,7 +6,13 @@ This program is free software: you can redistribute it and/or modify it under th
import { Pattern, patternify2 } from './index.mjs';
const synth = window?.speechSynthesis;
let synth;
try {
synth = window?.speechSynthesis;
} catch (err) {
console.warn('cannot use window: not in browser?');
}
let allVoices = synth?.getVoices();
// console.log('voices', allVoices);