Skip to content

Commit f30330a

Browse files
author
Guru
committed
test utils
1 parent 78a7df6 commit f30330a

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import ChanceJS from "chance";
2+
3+
export function generateEmailWithTag() {
4+
// Randomly generating the tag...
5+
const chance = new ChanceJS();
6+
const tag = chance.string({
7+
length: 12,
8+
pool: "abcdefghijklmnopqrstuvwxyz0123456789",
9+
});
10+
return `kelg8.${tag}@inbox.testmail.app`;
11+
}
12+
13+
export function delay(time: number | undefined) {
14+
return new Promise(function (resolve) {
15+
setTimeout(resolve, time);
16+
});
17+
}

demo/redirect-flow-example/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"target": "ESNext",
1818
"types": ["vite/client"]
1919
},
20-
"include": ["src"]
20+
"include": ["src", "tests/test1.test.ts", "utils"]
2121
}
2222

2323

0 commit comments

Comments
 (0)