mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-23 06:19:49 -05:00
fix preparing test
This commit is contained in:
parent
f0670dde20
commit
2bf6a04f81
@ -1,5 +1,9 @@
|
|||||||
const fs = require("fs");
|
const fs = require("fs");
|
||||||
|
|
||||||
fs.rmdirSync("./data/test-chrome-profile", {
|
const path = "./data/test-chrome-profile";
|
||||||
recursive: true,
|
|
||||||
});
|
if (fs.existsSync(path)) {
|
||||||
|
fs.rmdirSync(path, {
|
||||||
|
recursive: true,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
const fs = require("fs");
|
const fs = require("fs");
|
||||||
|
|
||||||
fs.rmdirSync("./data/test", {
|
const path = "./data/test";
|
||||||
recursive: true,
|
|
||||||
});
|
if (fs.existsSync(path)) {
|
||||||
|
fs.rmdirSync(path, {
|
||||||
|
recursive: true,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user