@@ -17,8 +17,8 @@ describe('API module', () => {
1717
1818 describe ( 'getTranslation' , ( ) => {
1919 it ( 'should call fetch with correct parameters' , async ( ) => {
20- const source : LangChoice = { name : 'English' , code : 'en' , targets : [ ] } ;
21- const target : LangChoice = { name : 'Spanish' , code : 'es' , targets : [ ] } ;
20+ const source : LangChoice = { name : 'English' , code : 'en' , targets : [ ] , history : [ ] } ;
21+ const target : LangChoice = { name : 'Spanish' , code : 'es' , targets : [ ] , history : [ ] } ;
2222 const text = 'Hello' ;
2323
2424 const api = API ( ) ;
@@ -39,8 +39,8 @@ describe('API module', () => {
3939 } ) ;
4040
4141 it ( 'should return parsed response' , async ( ) => {
42- const source : LangChoice = { name : 'English' , code : 'en' , targets : [ ] } ;
43- const target : LangChoice = { name : 'Spanish' , code : 'es' , targets : [ ] } ;
42+ const source : LangChoice = { name : 'English' , code : 'en' , targets : [ ] , history : [ ] } ;
43+ const target : LangChoice = { name : 'Spanish' , code : 'es' , targets : [ ] , history : [ ] } ;
4444 const text = 'Hello' ;
4545
4646 const api = API ( ) ;
@@ -54,8 +54,8 @@ describe('API module', () => {
5454 Promise . reject ( new Error ( 'Network error' ) )
5555 ) ;
5656
57- const source : LangChoice = { name : 'English' , code : 'en' , targets : [ ] } ;
58- const target : LangChoice = { name : 'Spanish' , code : 'es' , targets : [ ] } ;
57+ const source : LangChoice = { name : 'English' , code : 'en' , targets : [ ] , history : [ ] } ;
58+ const target : LangChoice = { name : 'Spanish' , code : 'es' , targets : [ ] , history : [ ] } ;
5959 const text = 'Hello' ;
6060
6161 const api = API ( ) ;
@@ -79,8 +79,8 @@ describe('API module', () => {
7979 } ) ;
8080
8181 it ( 'should call fetch with correct parameters' , async ( ) => {
82- const source : LangChoice = { name : 'English' , code : 'en' , targets : [ ] } ;
83- const target : LangChoice = { name : 'Spanish' , code : 'es' , targets : [ ] } ;
82+ const source : LangChoice = { name : 'English' , code : 'en' , targets : [ ] , history : [ ] } ;
83+ const target : LangChoice = { name : 'Spanish' , code : 'es' , targets : [ ] , history : [ ] } ;
8484 const text = 'Hello' ;
8585
8686 const api = API ( ) ;
@@ -93,8 +93,8 @@ describe('API module', () => {
9393 } ) ;
9494
9595 it ( 'should return parsed response with notable words' , async ( ) => {
96- const source : LangChoice = { name : 'English' , code : 'en' , targets : [ ] } ;
97- const target : LangChoice = { name : 'Spanish' , code : 'es' , targets : [ ] } ;
96+ const source : LangChoice = { name : 'English' , code : 'en' , targets : [ ] , history : [ ] } ;
97+ const target : LangChoice = { name : 'Spanish' , code : 'es' , targets : [ ] , history : [ ] } ;
9898 const text = 'Hello' ;
9999
100100 const api = API ( ) ;
0 commit comments