Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
Signed-off-by: Colin Grant <[email protected]>
  • Loading branch information
colin-grant-work committed Nov 24, 2021
1 parent a9196a1 commit 545ef97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import { MonacoTextModelService } from '@theia/monaco/lib/browser/monaco-text-mo
import { Disposable, MessageService } from '@theia/core/lib/common';
import { MonacoWorkspace } from '@theia/monaco/lib/browser/monaco-workspace';
import { PreferenceSchemaProvider } from '@theia/core/lib/browser';
import { EditorManager } from '@theia/editor/lib/browser';

disableJSDOM();

Expand Down Expand Up @@ -84,6 +85,7 @@ describe('AbstractResourcePreferenceProvider', () => {
testContainer.bind(<any>MonacoTextModelService).toConstantValue(new MockTextModelService);
testContainer.bind(<any>MessageService).toConstantValue(undefined);
testContainer.bind(<any>MonacoWorkspace).toConstantValue(undefined);
testContainer.bind(<any>EditorManager).toConstantValue(undefined);
provider = testContainer.resolve(<any>LessAbstractPreferenceProvider);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ export abstract class AbstractResourcePreferenceProvider extends PreferenceProvi
success = true;
} finally {
this.readPreferences();
await this.fireDidPreferencesChanged();
this.pendingTransaction.resolve(success);
}
}));
Expand Down

0 comments on commit 545ef97

Please sign in to comment.