File tree Expand file tree Collapse file tree 2 files changed +34
-8
lines changed
packages/data-connect/test/unit Expand file tree Collapse file tree 2 files changed +34
-8
lines changed Original file line number Diff line number Diff line change @@ -98,18 +98,18 @@ module.exports = {
9898 'object' : 'it' ,
9999 'property' : 'skip'
100100 } ,
101- // {
102- // 'object': 'it',
103- // 'property': 'only'
104- // },
101+ {
102+ 'object' : 'it' ,
103+ 'property' : 'only'
104+ } ,
105105 {
106106 'object' : 'describe' ,
107107 'property' : 'skip'
108108 } ,
109- // {
110- // 'object': 'describe',
111- // 'property': 'only'
112- // },
109+ {
110+ 'object' : 'describe' ,
111+ 'property' : 'only'
112+ } ,
113113 {
114114 'object' : 'xit'
115115 }
Original file line number Diff line number Diff line change @@ -220,4 +220,30 @@ describe('fetch', () => {
220220 }
221221 }
222222 } ) ;
223+ it ( 'should call credentials include if using emulator on cloud workstation' , async ( ) => {
224+ const json = {
225+ code : 200 ,
226+ message1 : 'success'
227+ } ;
228+ const fakeFetchImpl = mockFetch ( json , false ) ;
229+ await dcFetch (
230+ 'https://abc.cloudworkstations.dev' ,
231+ {
232+ name : 'n' ,
233+ operationName : 'n' ,
234+ variables : { }
235+ } ,
236+ { } as AbortController ,
237+ null ,
238+ null ,
239+ null ,
240+ true , // _isUsingGen is true
241+ CallerSdkTypeEnum . Base ,
242+ true
243+ ) ;
244+ expect ( fakeFetchImpl ) . to . have . been . calledWithMatch (
245+ 'https://abc.cloudworkstations.dev' ,
246+ { credentials : 'include' }
247+ ) ;
248+ } ) ;
223249} ) ;
You can’t perform that action at this time.
0 commit comments