mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-17 15:33:12 +09:00
Move test/temp to temp/test
Move the temporary files generated by the the tests to the top level directory temp.
This commit is contained in:
1 parent
028f00e58a
commit
f9f0e5b5f7
12 files changed
+18
-17
No files matched your search
@@ -1,5 +1,6 @@
|
||||
const assert = require("assert").strict;
|
||||
const fs = require("fs-extra");
|
||||
const path = require("path");
|
||||
|
||||
const database = require("lib/database");
|
||||
|
||||
@@ -60,7 +61,7 @@ describe("lib/database", function() {
|
||||
|
||||
describe("saveMapAsJson()", function() {
|
||||
it("should save a mapping as JSON", async function() {
|
||||
let testFile = 'test/temp/save_map.json';
|
||||
let testFile = path.join("temp", "test", "save_map.json");
|
||||
async function deleteTestFile() {
|
||||
try {
|
||||
await fs.unlink(testFile);
|
||||
@@ -134,7 +135,7 @@ describe("lib/database", function() {
|
||||
|
||||
describe("saveMapAsJsonArray()", function() {
|
||||
it("should save a mapping as JSON", async function() {
|
||||
let testFile = 'test/temp/save_array_map.json';
|
||||
let testFile = path.join("temp", "test", "save_array_map.json");
|
||||
async function deleteTestFile() {
|
||||
try {
|
||||
await fs.unlink(testFile);
|
||||
|
||||
Reference in new issue
Block a user