Test migration to jest by hand
Apparently using regular expressions is way easier.
This commit is contained in:
6
test/speechSynthesis/speechSynthesis.js
Normal file
6
test/speechSynthesis/speechSynthesis.js
Normal file
@ -0,0 +1,6 @@
|
||||
const speechSynthesis = message => {
|
||||
const msg = new SpeechSynthesisUtterance(message);
|
||||
msg.voice = window.speechSynthesis.getVoices()[0];
|
||||
window.speechSynthesis.speak(msg);
|
||||
};
|
||||
module.exports = speechSynthesis;
|
||||
Reference in New Issue
Block a user