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 06f7d8d commit 800cd38
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion test/SpecRunner.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand All @@ -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");
Expand Down
7 changes: 4 additions & 3 deletions test/spec/LowLevelFileIO-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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:\\");
Expand Down

0 comments on commit 800cd38

Please sign in to comment.