From 21f58d8d3ed30b731e15416de3338669f21b5e60 Mon Sep 17 00:00:00 2001 From: abose Date: Mon, 23 Oct 2023 17:09:40 +0530 Subject: [PATCH] fix: build failure --- test/spec/LowLevelFileIO-test.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/spec/LowLevelFileIO-test.js b/test/spec/LowLevelFileIO-test.js index 4134dc4d9..02068ce50 100644 --- a/test/spec/LowLevelFileIO-test.js +++ b/test/spec/LowLevelFileIO-test.js @@ -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:\\");