Skip to content

Commit

Permalink
FIX timer
Browse files Browse the repository at this point in the history
  • Loading branch information
augustovicente committed Apr 10, 2024
1 parent f51f200 commit 7da7217
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/unit/draft.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const new_draft: CreateNewDraftRequest = {
};

beforeEach(async () => {
await new Promise((r) => setTimeout(r, 2000));
await new Promise((r) => setTimeout(r, 3000));
});

let slug: string;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/publication.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const new_draft: CreateNewDraftRequest = {
let draft_data: CreateNewDraftResponse;

beforeEach(async () => {
await new Promise((r) => setTimeout(r, 2000));
await new Promise((r) => setTimeout(r, 3000));
});

describe('Create a normal draft', () => {
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/stack.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const new_draft: CreateNewDraftRequest = {
let slug: string, stack_id: string;

beforeEach(async () => {
await new Promise((r) => setTimeout(r, 2000));
await new Promise((r) => setTimeout(r, 3000));
});

describe('Stack and Draft', () => {
Expand Down Expand Up @@ -62,7 +62,7 @@ describe('Stack and Draft', () => {

try {
await draft.publishDraftBySlug(slug);
await new Promise((r) => setTimeout(r, 2000));
await new Promise((r) => setTimeout(r, 3000));
} catch (error: any) {
console.error('Error publishing draft:', error.response.data);
throw error;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/user.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const issuu_token: string = process.env.ISSUU_TOKEN!;
const { draft, user, stack, publication } = IssuuSDK(issuu_token);

beforeEach(async () => {
await new Promise((r) => setTimeout(r, 2000));
await new Promise((r) => setTimeout(r, 3000));
});

let slug_draft: string, slug_publication: string, stack_id: string;
Expand Down

0 comments on commit 7da7217

Please sign in to comment.