@@ -221,8 +221,8 @@ describe('Contentstack GlobalField test (API Version 3.2)', () => {
221221 stackHeaders: stackHeadersMock,
222222 api_version: '3.2' })
223223 expect(globalField.urlPath).to.be.equal('/global_fields')
224- expect(globalField.apiVersion ).to.be.equal('3.2')
225- expect(globalField.stackHeaders).to.deep.equal({ api_key: 'api_key' })
224+ expect(globalField.stackHeaders.api_version ).to.be.equal('3.2')
225+ expect(globalField.stackHeaders).to.deep.equal({ api_key: 'api_key', api_version: '3.2' })
226226 done()
227227 })
228228
@@ -237,7 +237,7 @@ describe('Contentstack GlobalField test (API Version 3.2)', () => {
237237 expect(globalField.urlPath).to.be.equal(
238238 `/global_fields/${systemUidMock.uid}`
239239 )
240- expect(globalField.apiVersion ).to.be.equal('3.2')
240+ expect(globalField.stackHeaders.api_version ).to.be.equal('3.2')
241241 expect(globalField.update).to.not.equal(undefined)
242242 expect(globalField.delete).to.not.equal(undefined)
243243 expect(globalField.fetch).to.not.equal(undefined)
@@ -257,7 +257,7 @@ describe('Contentstack GlobalField test (API Version 3.2)', () => {
257257 expect(globalField.urlPath).to.be.equal(
258258 `/global_fields/${systemUidMock.uid}`
259259 )
260- expect(globalField.apiVersion ).to.be.equal('3.2')
260+ expect(globalField.stackHeaders.api_version ).to.be.equal('3.2')
261261 expect(globalField.stackHeaders).to.not.equal(undefined)
262262 expect(globalField.stackHeaders.api_key).to.be.equal(
263263 stackHeadersMock.api_key
0 commit comments