summary refs log tree commit diff
path: root/cdn/tests/cdn_endpoints.test.js
diff options
context:
space:
mode:
authorChris Chrome <christophercookman@gmail.com>2021-12-26 13:38:25 -0500
committerGitHub <noreply@github.com>2021-12-26 13:38:25 -0500
commit565f3b9e5f067745dfb4339b621973c9c39bb690 (patch)
treeb601211fedf84401165b0e8626cf3fec1fc88db1 /cdn/tests/cdn_endpoints.test.js
parentFix the casing (diff)
parentAdd env name in sentry, set default sentry endpoint (diff)
downloadserver-565f3b9e5f067745dfb4339b621973c9c39bb690.tar.xz
Merge pull request #553 from TheArcaneBrony/master
Remove fs-extras, add Sentry support, fix compile errors, fix some typos
Diffstat (limited to 'cdn/tests/cdn_endpoints.test.js')
-rw-r--r--cdn/tests/cdn_endpoints.test.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/cdn/tests/cdn_endpoints.test.js b/cdn/tests/cdn_endpoints.test.js

index 8cf16748..5a543e54 100644 --- a/cdn/tests/cdn_endpoints.test.js +++ b/cdn/tests/cdn_endpoints.test.js
@@ -1,6 +1,6 @@ const dotenv = require("dotenv"); const path = require("path"); -const fse = require("fs-extra"); +const fs = require("fs"); dotenv.config(); // TODO: write unittest to check if FileStorage.ts is working @@ -21,7 +21,7 @@ if (process.env.STORAGE_PROVIDER === "file") { } else { process.env.STORAGE_LOCATION = path.join(__dirname, "..", "files", "/"); } - fse.ensureDirSync(process.env.STORAGE_LOCATION); + if(!fs.existsSync(process.env.STORAGE_LOCATION)) fs.mkdirSync(process.env.STORAGE_LOCATION, {recursive:true}); } const { CDNServer } = require("../dist/Server"); const { Config } = require("@fosscord/util");