Skip to content

Commit

Permalink
fix: build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
abose committed Oct 24, 2023
1 parent 800cd38 commit 21f58d8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/spec/LowLevelFileIO-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,19 @@ define(function (require, exports, module) {
expect(brackets.fs).toBeTruthy();
});

it("should getDisplayLocation return correct path", function () {
it("should getDisplayLocation return correct path in browsers", function () {
// mount paths
expect(brackets.app.getDisplayLocation("/mnt/apple")).toBe("apple");
expect(brackets.app.getDisplayLocation("/mnt/apple/x/")).toBe("apple/x/");
// filer paths
expect(brackets.app.getDisplayLocation("/x/apple")).toBe(Strings.STORED_IN_YOUR_BROWSER);
expect(brackets.app.getDisplayLocation("/y/apple/x/")).toBe(Strings.STORED_IN_YOUR_BROWSER);
});

it("should getDisplayLocation return correct path in tauri", function () {
if(!brackets.browser.isTauri) {
return;
}
// tauri paths
if(brackets.platform === "win"){
expect(brackets.app.getDisplayLocation("/tauri/x")).toBe("x:\\");
Expand Down

0 comments on commit 21f58d8

Please sign in to comment.