Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
setho246 committed Aug 23, 2021
1 parent 704bba9 commit 591a331
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/controllers/EditorController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class EditorController
//set the configuration
monaco.languages.setLanguageConfiguration("yarnSpinner", yarnSpinner.config);
//set the completions NOT WORKING CURRENTLY
// @ts-expect-error
// @ts-expect-error Forge
monaco.languages.registerCompletionItemProvider("yarnSpinner", completions);

//monaco.editor.defineTheme("yarnSpinnerTheme", yarnSpinner.theme);
Expand Down
5 changes: 2 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*/

import { app, BrowserWindow, Menu, ipcMain, shell, screen } from "electron";
import * as path from "path";
import { openFile as YarnOpenFile } from "./controllers/fileSystem/fileOpenController";
import { writeFile as YarnWriteFile } from "./controllers/fileSystem/fileWriteController";

Expand Down Expand Up @@ -42,7 +41,7 @@ function createWindow()


// and load the index.html of the app.
mainWindow.loadURL(MAIN_WINDOW_WEBPACK_ENTRY);
mainWindow.loadURL(MAIN_WINDOW_WEBPACK_ENTRY);

}

Expand Down Expand Up @@ -226,7 +225,7 @@ const template = [
}
];

//@ts-expect-error
//@ts-expect-error Forge
const menu = Menu.buildFromTemplate(template);
Menu.setApplicationMenu(menu);

Expand Down
4 changes: 2 additions & 2 deletions src/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
// nodeIntegration is set to true in webPreferences.
// Use preload.js to selectively enable features
// needed in the renderer process.
import './index.css'
import './views/YSLogo.png'
import "./index.css";
import "./views/YSLogo.png";
import { ipcRenderer } from "electron";
import { ThemeReader } from "./controllers/themeReader";
import { YarnFileManager } from "./models/YarnFileManager";
Expand Down
6 changes: 3 additions & 3 deletions src/views/ts/nodeView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -541,9 +541,9 @@ export function changeNodeName(oldName: string, newName: string) : void

//update the text
// ! Type mismatch, findOne returns any shape
//@ts-expect-error
//@ts-expect-error Forge
tempNode.findOne(".text").text(newName);
//@ts-expect-error
//@ts-expect-error Forge
tempMiniNode.findOne(".text").text(newName);

//update the name
Expand Down Expand Up @@ -647,7 +647,7 @@ export function receiveJumps(jumps: NodeJump[]) : void
console.log("from receiveJumps: source = " + jumps[i].getSource());
console.log("from receiveJumps: target = " + jumps[i].getTarget());

//@ts-expect-error
//@ts-expect-error Forge
connectNodes(jumps[i].getSource(), jumps[i].getTarget());
}
}

0 comments on commit 591a331

Please sign in to comment.