Skip to content

Commit

Permalink
chore(test): clean spec source code
Browse files Browse the repository at this point in the history
  • Loading branch information
pviti committed Oct 31, 2023
1 parent 6b2a5f4 commit b4b7953
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 18 deletions.
16 changes: 1 addition & 15 deletions specs/commercelayer.spec.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@

import { CommerceLayerClient, CommerceLayerStatic } from '../src'
import { currentAccessToken, getClient, initClient, organization, } from '../test/common'
import { getClient, organization, } from '../test/common'
import { RawResponseReader } from '../src/interceptor'
import { OPEN_API_SCHEMA_VERSION } from '../src/commercelayer'


let cl: CommerceLayerClient
Expand Down Expand Up @@ -37,18 +36,6 @@ describe('SDK:commercelayer suite', () => {
})


/*
it('commercelayer.accessToken', async () => {
expect(cl.currentAccessToken).toEqual(currentAccessToken)
cl.config({ accessToken: 'fake-token' })
expect(cl.currentAccessToken).toEqual('fake-token')
})
*/


it('commercelayer.rawResponse', async () => {

jest.setTimeout(10000)
Expand All @@ -74,5 +61,4 @@ describe('SDK:commercelayer suite', () => {

})


})
1 change: 0 additions & 1 deletion specs/headers.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,4 @@ describe('Test headers', () => {

})


})
1 change: 0 additions & 1 deletion specs/sdk.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { ObjectType, isResourceType } from '../src/common'
let cl: CommerceLayerClient


// eslint-disable-next-line @typescript-eslint/no-unused-vars
beforeAll(async () => { cl = await getClient() })


Expand Down
1 change: 0 additions & 1 deletion specs/static.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { getClient, organization } from '../test/common'
let cl: CommerceLayerClient


// eslint-disable-next-line @typescript-eslint/no-unused-vars
beforeAll(async () => { cl = await getClient() })


Expand Down

0 comments on commit b4b7953

Please sign in to comment.