fix tests

This commit is contained in:
meganrogge 2023-01-12 12:29:19 -06:00
parent 20b37627f2
commit 178a0064fb
No known key found for this signature in database
GPG key ID: 1367081C49377970
2 changed files with 2 additions and 2 deletions

View file

@ -46,7 +46,7 @@ suite('QuickFixAddon', () => {
rows: 30
});
instantiationService.stub(IStorageService, new TestStorageService());
instantiationService.stub(ITerminalContributionService, { quickFixes: Promise.resolve([]) } as Partial<ITerminalContributionService>);
instantiationService.stub(ITerminalContributionService, { quickFixes: new Promise((r) => { r([]); }) } as Partial<ITerminalContributionService>);
instantiationService.stub(ITerminalQuickFixService, { onDidRegisterProvider: new Emitter().event, onDidUnregisterProvider: new Emitter().event, onDidRegisterCommandSelector: new Emitter().event } as Partial<ITerminalQuickFixService>);
instantiationService.stub(IConfigurationService, new TestConfigurationService());
instantiationService.stub(ILabelService, {} as Partial<ILabelService>);

View file

@ -90,7 +90,7 @@ class TestTerminalExtensionService extends TestExtensionService {
class TestTerminalContributionService implements ITerminalContributionService {
_serviceBrand: undefined;
terminalProfiles: readonly IExtensionTerminalProfile[] = [];
quickFixes: Promise<ITerminalCommandSelector[]> = new Promise();
quickFixes: Promise<ITerminalCommandSelector[]> = new Promise((r) => { r([]); });
setProfiles(profiles: IExtensionTerminalProfile[]): void {
this.terminalProfiles = profiles;
}