From 800cd38af3f5615a7e8d9a1824d6f2eefdd261e8 Mon Sep 17 00:00:00 2001 From: abose Date: Mon, 23 Oct 2023 15:58:26 +0530 Subject: [PATCH] fix: build failure --- test/SpecRunner.js | 3 ++- test/spec/LowLevelFileIO-test.js | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/test/SpecRunner.js b/test/SpecRunner.js index ec4368cae..b726d66c9 100644 --- a/test/SpecRunner.js +++ b/test/SpecRunner.js @@ -178,7 +178,7 @@ define(function (require, exports, module) { // Utility dependencies - var AppInit = require("utils/AppInit"), + const AppInit = require("utils/AppInit"), SpecRunnerUtils = require("spec/SpecRunnerUtils"), ExtensionLoader = require("utils/ExtensionLoader"), Async = require("utils/Async"), @@ -189,6 +189,7 @@ define(function (require, exports, module) { BootstrapReporterView = require("test/BootstrapReporterView").BootstrapReporterView, NativeApp = require("utils/NativeApp"); + window.Strings = require("strings"); // Load modules for later use require("utils/EventDispatcher"); require("language/CodeInspection"); diff --git a/test/spec/LowLevelFileIO-test.js b/test/spec/LowLevelFileIO-test.js index 26abcf005..4134dc4d9 100644 --- a/test/spec/LowLevelFileIO-test.js +++ b/test/spec/LowLevelFileIO-test.js @@ -27,7 +27,8 @@ define(function (require, exports, module) { require("utils/Global"); // Load dependent modules - var SpecRunnerUtils = require("spec/SpecRunnerUtils"); + const SpecRunnerUtils = require("spec/SpecRunnerUtils"), + Strings = require("strings"); var UTF8 = "utf8", UTF16 = "utf16"; @@ -109,8 +110,8 @@ define(function (require, exports, module) { 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("/x/apple"); - expect(brackets.app.getDisplayLocation("/y/apple/x/")).toBe("/y/apple/x/"); + 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); // tauri paths if(brackets.platform === "win"){ expect(brackets.app.getDisplayLocation("/tauri/x")).toBe("x:\\");