Skip to content

Commit

Permalink
feat(int-1031): Add customFetch method to Storyblok class
Browse files Browse the repository at this point in the history
- CD/CI testing
  • Loading branch information
Thiago Saife Rodrigues committed Dec 27, 2023
1 parent 289fd7e commit 28e4ab1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/customFetch.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { expect, test, describe, beforeEach } from 'vitest'
import StoryblokClient from '../'
import fs from 'fs'

const generateJibberishWord = (length) => {
const characters = 'abcdefghijklmnopqrstuvwxyz'
Expand All @@ -13,7 +14,11 @@ const generateJibberishWord = (length) => {
return jibberishWord
}

describe.skip('define environment variables', () => {
fs.readdirSync('.').forEach((file) => {
console.log(file);
})

describe('define environment variables', () => {
test('Accessing Environment Variables', () => {
const accessToken = process.env.VITE_ACCESS_TOKEN;
const oauthToken = process.env.VITE_OAUTH_TOKEN;
Expand All @@ -35,7 +40,7 @@ describe.skip('define environment variables', () => {
});
})

describe.skip('customFetch', () => {
describe('customFetch', () => {
let client
const url = `spaces/${process.env.VITE_SPACE_ID}/stories`

Expand Down

0 comments on commit 28e4ab1

Please sign in to comment.