Skip to content

Commit

Permalink
test: increase jest timeout by 10000
Browse files Browse the repository at this point in the history
  • Loading branch information
MinHtet-O committed May 6, 2024
1 parent a9b11ca commit 22eeb10
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ module.exports = {
testMatch: ["**/__tests__/**/*.[jt]s?(x)", "**/?(*.)test.[jt]s?(x)"],
transformIgnorePatterns: ["node_modules/?!(@tradetrust-tt).*/"],
testPathIgnorePatterns: ["<rootDir>/node_modules/", "<rootDir>/tests/"],
testTimeout: 10000,
};
10 changes: 5 additions & 5 deletions src/test/load-action-certificate.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ test("Load document from action should work when url is valid", async (t) => {
payload: {
uri: `https://raw.githubusercontent.com/Open-Attestation/gallery/master/static/documents/tradetrust/v2/ebl-stability.json`,
permittedActions: ["VIEW"],
redirect: "https://dev.tradetrust.io",
chainId: 80002,
redirect: "https://tradetrust.io",
chainId: 101010,
},
};
await t.navigateTo(`${location}/?q=${encodeURI(JSON.stringify(action))}`);
Expand All @@ -27,8 +27,8 @@ test("Load document from action should fail when url is invalid", async (t) => {
type: "DOCUMENT",
payload: {
uri: `https://raw.githubusercontent.com/Open-Attestation/gallery/master/static/documents/tradetrust/v2/ebl-stability-invalid.json`,
redirect: "https://dev.tradetrust.io",
chainId: 80002,
redirect: "https://tradetrust.io",
chainId: 101010,
},
};

Expand All @@ -38,7 +38,7 @@ test("Load document from action should fail when url is invalid", async (t) => {
await validateTextContent(t, CertificateDropzone, [
"This document is not valid",
"Unable to load certificate with the provided parameters",
"Unable to load the certificate from https://raw.githubusercontent.com/Open-Attestation/gallery/master/static/documents/123.tt",
"Unable to load the certificate from https://raw.githubusercontent.com/Open-Attestation/gallery/master/static/documents/tradetrust/v2/ebl-stability-invalid.json",
]);
});

Expand Down

0 comments on commit 22eeb10

Please sign in to comment.