diff --git a/src/common/TestUtils.test.ts b/src/common/TestUtils.test.ts index effe1ca5..58f6c709 100644 --- a/src/common/TestUtils.test.ts +++ b/src/common/TestUtils.test.ts @@ -121,13 +121,12 @@ export class MockLogService implements ILogService { export class MockOptionsService implements IOptionsService { public serviceBrand: any; public readonly rawOptions: ITerminalOptions = clone(DEFAULT_OPTIONS); - public options: ITerminalOptions = clone(DEFAULT_OPTIONS); + public options: ITerminalOptions = this.rawOptions; public onOptionChange: IEvent = new EventEmitter().event; constructor(testOptions?: Partial) { if (testOptions) { for (const key of Object.keys(testOptions)) { - this.rawOptions = testOptions[key]; - this.options[key] = testOptions[key]; + this.rawOptions[key] = testOptions[key]; } } }