-
Notifications
You must be signed in to change notification settings - Fork 29
/
uuid.test.js
34 lines (31 loc) · 1.01 KB
/
uuid.test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// const fs = require("fs");
// const filesEN = fs.readdirSync("./content/en/careers/positions/");
// const filesFR = fs.readdirSync("./content/fr/careers/positions/")
// const archFalse = /archived: false/i;
// const UUIDRegex =/[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12}/;
// test("UUID in correct format EN", () => {
// filesEN.forEach((element) => {
// let data = fs.readFileSync(
// `./content/en/careers/positions/${element}`,
// "utf8"
// );
// if (archFalse.test(data)) {
// const found = data.match(UUIDRegex);
// expect(found).not.toBeNull();
// }
// });
// });
// test("UUID in correct format FR", () => {
// filesFR.forEach((element) => {
// let data = fs.readFileSync(
// `./content/fr/careers/positions/${element}`,
// "utf8"
// );
// if (archFalse.test(data)) {
// const found = data.match(UUIDRegex);
// expect(found).not.toBeNull();
// }
// });
// });
test("UUID in correct format EN", () => {
})