@@ -11,39 +11,39 @@ describe('Localized Data', () => {
1111 } )
1212
1313 it ( 'supports sap-language param' , async ( ) => {
14- const { data } = await GET ( `/browse/Books?$select=title,authorName ` + '&sap-language=de' )
14+ const { data } = await GET ( `/browse/Books?$select=title,author ` + '&sap-language=de' )
1515 expect ( data . value ) . to . containSubset ( [
16- { title : 'Sturmhöhe' , authorName : 'Emily Brontë' } ,
17- { title : 'Jane Eyre' , authorName : 'Charlotte Brontë' } ,
18- { title : 'The Raven' , authorName : 'Edgar Allen Poe' } ,
19- { title : 'Eleonora' , authorName : 'Edgar Allen Poe' } ,
20- { title : 'Catweazle' , authorName : 'Richard Carpenter' } ,
16+ { title : 'Sturmhöhe' , author : 'Emily Brontë' } ,
17+ { title : 'Jane Eyre' , author : 'Charlotte Brontë' } ,
18+ { title : 'The Raven' , author : 'Edgar Allen Poe' } ,
19+ { title : 'Eleonora' , author : 'Edgar Allen Poe' } ,
20+ { title : 'Catweazle' , author : 'Richard Carpenter' } ,
2121 ] )
2222 } )
2323
2424 it ( 'supports accept-language header' , async ( ) => {
25- const { data } = await GET ( `/browse/Books?$select=title,authorName ` , {
25+ const { data } = await GET ( `/browse/Books?$select=title,author ` , {
2626 headers : { 'Accept-Language' : 'de' } ,
2727 } )
2828 expect ( data . value ) . to . containSubset ( [
29- { title : 'Sturmhöhe' , authorName : 'Emily Brontë' } ,
30- { title : 'Jane Eyre' , authorName : 'Charlotte Brontë' } ,
31- { title : 'The Raven' , authorName : 'Edgar Allen Poe' } ,
32- { title : 'Eleonora' , authorName : 'Edgar Allen Poe' } ,
33- { title : 'Catweazle' , authorName : 'Richard Carpenter' } ,
29+ { title : 'Sturmhöhe' , author : 'Emily Brontë' } ,
30+ { title : 'Jane Eyre' , author : 'Charlotte Brontë' } ,
31+ { title : 'The Raven' , author : 'Edgar Allen Poe' } ,
32+ { title : 'Eleonora' , author : 'Edgar Allen Poe' } ,
33+ { title : 'Catweazle' , author : 'Richard Carpenter' } ,
3434 ] )
3535 } )
3636
3737 it ( 'supports queries with $expand' , async ( ) => {
38- const { data } = await GET ( `/browse/Books?&$select=title,authorName &$expand=currency` , {
38+ const { data } = await GET ( `/browse/Books?&$select=title,author &$expand=currency` , {
3939 headers : { 'Accept-Language' : 'de' } ,
4040 } )
4141 expect ( data . value ) . to . containSubset ( [
42- { title : 'Sturmhöhe' , authorName : 'Emily Brontë' , currency : { name : 'Pfund' } } ,
43- { title : 'Jane Eyre' , authorName : 'Charlotte Brontë' , currency : { name : 'Pfund' } } ,
44- { title : 'The Raven' , authorName : 'Edgar Allen Poe' , currency : { name : 'US-Dollar' } } ,
45- { title : 'Eleonora' , authorName : 'Edgar Allen Poe' , currency : { name : 'US-Dollar' } } ,
46- { title : 'Catweazle' , authorName : 'Richard Carpenter' , currency : { name : 'Yen' } } ,
42+ { title : 'Sturmhöhe' , author : 'Emily Brontë' , currency : { name : 'Pfund' } } ,
43+ { title : 'Jane Eyre' , author : 'Charlotte Brontë' , currency : { name : 'Pfund' } } ,
44+ { title : 'The Raven' , author : 'Edgar Allen Poe' , currency : { name : 'US-Dollar' } } ,
45+ { title : 'Eleonora' , author : 'Edgar Allen Poe' , currency : { name : 'US-Dollar' } } ,
46+ { title : 'Catweazle' , author : 'Richard Carpenter' , currency : { name : 'Yen' } } ,
4747 ] )
4848 } )
4949
0 commit comments