Fixed typos

This commit is contained in:
Oliver Schwendener 2024-05-05 16:30:25 +02:00
parent a28e0baf07
commit b756127ede
No known key found for this signature in database
GPG Key ID: E0A1FD3813759BE1
5 changed files with 8 additions and 8 deletions

View File

@ -26,4 +26,4 @@ We accept pull requests only in English. When a pull request is posted in a lang
### Coding style
Please use [eslint](.eslintrc.json) to verify that your contribution matches our coding style. Additionally we use [prettier](.prettierrc) to auto-format the code. All pull requests that don't match the coding style won't be accepted.
Please use [eslint](.eslintrc.json) to verify that your contribution matches our coding style. Additionally, we use [prettier](.prettierrc) to auto-format the code. All pull requests that don't match the coding style won't be accepted.

View File

@ -1,5 +1,5 @@
/**
* Offers methots to execute AppleScript commands.
* Offers methods to execute AppleScript commands.
*/
export interface AppleScriptUtility {
/**

View File

@ -1,13 +1,13 @@
import type { App } from "electron";
import { describe, expect, it, vi } from "vitest";
import { SingleInstaneLockModule } from "./SingleInstanceLockModule";
import { SingleInstanceLockModule } from "./SingleInstanceLockModule";
describe(SingleInstaneLockModule, () => {
describe(SingleInstanceLockModule, () => {
it("should request single instance lock", () => {
const requestSingleInstanceLockMock = vi.fn().mockReturnValue(true);
const quickMock = vi.fn();
SingleInstaneLockModule.bootstrap(<App>{
SingleInstanceLockModule.bootstrap(<App>{
requestSingleInstanceLock: () => requestSingleInstanceLockMock(),
quit: () => quickMock(),
});
@ -21,7 +21,7 @@ describe(SingleInstaneLockModule, () => {
const quickMock = vi.fn();
SingleInstaneLockModule.bootstrap(<App>{
SingleInstanceLockModule.bootstrap(<App>{
requestSingleInstanceLock: () => requestSingleInstanceLockMock(),
quit: () => quickMock(),
});

View File

@ -1,6 +1,6 @@
import type { App } from "electron";
export class SingleInstaneLockModule {
export class SingleInstanceLockModule {
public static bootstrap(app: App) {
if (!app.requestSingleInstanceLock()) {
console.log("Quitting application. Reason: another instance is already running");

View File

@ -7,7 +7,7 @@ import * as Extensions from "./Extensions";
(async () => {
await Electron.app.whenReady();
Core.SingleInstaneLockModule.bootstrap(Electron.app);
Core.SingleInstanceLockModule.bootstrap(Electron.app);
Core.DockModule.bootstrap(Electron.app);
const dependencyRegistry = Core.DependencyRegistryModule.bootstrap();