diff --git a/src/common/InputHandler.test.ts b/src/common/InputHandler.test.ts index d52077bf..8f9a988f 100644 --- a/src/common/InputHandler.test.ts +++ b/src/common/InputHandler.test.ts @@ -18,6 +18,7 @@ import { clone } from 'common/Clone'; import { BufferService } from 'common/services/BufferService'; import { CoreService } from 'common/services/CoreService'; + function getCursor(bufferService: IBufferService): number[] { return [ bufferService.buffer.x, @@ -1993,7 +1994,7 @@ describe('InputHandler', () => { stack.length = 0; // full ANSI table restore await inputHandler.parseP('\x1b]104\x07'); - assert.deepEqual(stack, [[{ type: ColorRequestType.RESTORE }]]); + assert.deepEqual(stack, [[{ type: ColorRequestType.RESTORE}]]); }); it('10: FG set & query events', async () => { diff --git a/src/common/Types.d.ts b/src/common/Types.d.ts index 251a09f6..17c7231a 100644 --- a/src/common/Types.d.ts +++ b/src/common/Types.d.ts @@ -447,6 +447,7 @@ export interface IColorRestoreRequest { } export type IColorEvent = (IColorReportRequest | IColorSetRequest | IColorRestoreRequest)[]; + /** * Calls the parser and handles actions generated by the parser. */ diff --git a/src/common/services/OptionsService.ts b/src/common/services/OptionsService.ts index 3c2d9678..0375f6ad 100644 --- a/src/common/services/OptionsService.ts +++ b/src/common/services/OptionsService.ts @@ -169,7 +169,7 @@ export class OptionsService extends Disposable implements IOptionsService { break; case 'cursorWidth': value = Math.floor(value); - // Fall through for bounds check + // Fall through for bounds check case 'lineHeight': case 'tabStopWidth': if (value < 1) { diff --git a/test/api/TestUtils.ts b/test/api/TestUtils.ts index cee59cce..9ebf67b6 100644 --- a/test/api/TestUtils.ts +++ b/test/api/TestUtils.ts @@ -74,10 +74,9 @@ export function getBrowserType(): playwright.BrowserType { +export function launchBrowser(): Promise { const browserType = getBrowserType(); - const options: playwright.LaunchOptions = { - ...opts, + const options: Record = { headless: process.argv.includes('--headless') };