Skip to content

Commit

Permalink
change the name of the deprecation provider
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet committed Sep 13, 2021
1 parent 6352eeb commit 0a745d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ describe('SavedObjectsService', () => {
await soService.setup(createSetupDeps());

expect(deprecationsSetup.getRegistry).toHaveBeenCalledTimes(1);
expect(deprecationsSetup.getRegistry).toHaveBeenCalledWith('core');
expect(deprecationsSetup.getRegistry).toHaveBeenCalledWith('savedObjects');
expect(mockRegistry.registerDeprecations).toHaveBeenCalledTimes(1);
expect(mockRegistry.registerDeprecations).toHaveBeenCalledWith(deprecations);
});
Expand Down
2 changes: 1 addition & 1 deletion src/core/server/saved_objects/saved_objects_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ export class SavedObjectsService
.pipe(first())
.toPromise();

deprecations.getRegistry('core').registerDeprecations(
deprecations.getRegistry('savedObjects').registerDeprecations(
getSavedObjectsDeprecationsProvider({
kibanaConfig,
savedObjectsConfig: this.config,
Expand Down

0 comments on commit 0a745d2

Please sign in to comment.