diff --git a/src/index.ts b/src/index.ts index 18c20f94..7529e32d 100755 --- a/src/index.ts +++ b/src/index.ts @@ -87,7 +87,6 @@ class Storyblok { const getRegion = new SbHelpers().getRegionURL const protocol = config.https === false ? 'http' : 'https' - console.log('config.oauthToken', config.oauthToken) if (!config.oauthToken) { endpoint = `${protocol}://${getRegion(config.region)}/${'v2' as Version}` diff --git a/tests/customFetch.test.js b/tests/customFetch.test.js index 918a6ff2..f30f9be6 100644 --- a/tests/customFetch.test.js +++ b/tests/customFetch.test.js @@ -15,13 +15,12 @@ const generateJibberishWord = (length) => { describe('customFetch', () => { let client - const url = `spaces/${process.env.VITE_SPACE_ID}/stories` + const url = `spaces/${VITE_SPACE_ID}/stories` beforeEach(() => { client = new StoryblokClient({ - oauthToken: process.env.VITE_OAUTH_TOKEN, + oauthToken: VITE_OAUTH_TOKEN, }) - console.log('url', client.client.baseURL) }) test('should call GET method', async () => {