fix tests again

This commit is contained in:
Simon Lamon
2022-01-08 08:51:29 +00:00
parent 1dcc1d1baf
commit ad7fe8f881
+2 -3
View File
@@ -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<string> = new EventEmitter<string>().event;
constructor(testOptions?: Partial<ITerminalOptions>) {
if (testOptions) {
for (const key of Object.keys(testOptions)) {
this.rawOptions = testOptions[key];
this.options[key] = testOptions[key];
this.rawOptions[key] = testOptions[key];
}
}
}