Migrated tests to jest
Used jest-codemods to migrate, will have to pass everything by hand before we can merge.
This commit is contained in:
6
test6/speechSynthesis/speechSynthesis.js
Normal file
6
test6/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
test6/speechSynthesis/speechSynthesis.test.js
Normal file
8
test6/speechSynthesis/speechSynthesis.test.js
Normal file
@ -0,0 +1,8 @@
|
||||
const expect = require('expect');
|
||||
const speechSynthesis = require('./speechSynthesis.js');
|
||||
|
||||
test('Testing speechSynthesis', () => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
expect(typeof speechSynthesis === 'function').toBeTruthy();
|
||||
});
|
||||
Reference in New Issue
Block a user