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;
|
||||
8
test/speechSynthesis/speechSynthesis.test.js
Normal file
8
test/speechSynthesis/speechSynthesis.test.js
Normal file
@ -0,0 +1,8 @@
|
||||
const expect = require('expect');
|
||||
const speechSynthesis = require('./speechSynthesis.js');
|
||||
|
||||
|
||||
test('speechSynthesis is a Function', () => {
|
||||
expect(speechSynthesis).toBeInstanceOf(Function);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user