Skip to content

Commit

Permalink
test utils
Browse files Browse the repository at this point in the history
  • Loading branch information
guru-web3 committed Feb 5, 2025
1 parent 78a7df6 commit f30330a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions demo/redirect-flow-example/testUtils.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import ChanceJS from "chance";

export function generateEmailWithTag() {
// Randomly generating the tag...
const chance = new ChanceJS();
const tag = chance.string({
length: 12,
pool: "abcdefghijklmnopqrstuvwxyz0123456789",
});
return `kelg8.${tag}@inbox.testmail.app`;
}

export function delay(time: number | undefined) {
return new Promise(function (resolve) {
setTimeout(resolve, time);
});
}
2 changes: 1 addition & 1 deletion demo/redirect-flow-example/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"target": "ESNext",
"types": ["vite/client"]
},
"include": ["src"]
"include": ["src", "tests/test1.test.ts", "utils"]
}


Expand Down

0 comments on commit f30330a

Please sign in to comment.