Skip to content

Commit 0ee32b7

Browse files
authored
Fix can get data directory test for Windows (#1541)
One of the unit tests was assuming a forward slash seperator, even though the implementation uses path.join(). This meant the test would fail on Windows platforms because on Windows path.join() would use a back slash path seperator. Type: Bug Fix
1 parent a9e6c17 commit 0ee32b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/data.spec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const assert = require("assert");
22
const path = require("path");
33
const data = require("./data");
4-
const {describe, it} = require("mocha");
4+
const { describe, it } = require("mocha");
55

66
describe("Acceptance tests for Data functions", () => {
77
describe("can find certain starter sets", () => {
@@ -18,7 +18,7 @@ describe("Acceptance tests for Data functions", () => {
1818

1919
assert(dataDir);
2020
assert(path.isAbsolute(dataDir));
21-
assert.equal(dataDir, `${repoRoot}/data`);
21+
assert.strictEqual(dataDir, path.join(repoRoot, "data"));
2222
});
2323
});
2424
});

0 commit comments

Comments
 (0)