Skip to content

Commit

Permalink
removing spaces mock
Browse files Browse the repository at this point in the history
  • Loading branch information
legrego committed Feb 6, 2020
1 parent d45e63d commit 3f24902
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 0 additions & 3 deletions src/legacy/ui/public/new_platform/new_platform.karma_mock.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,6 @@ export const npSetup = {
}),
},
},
spaces: {
registerLegacyAPI: sinon.fake(),
},
},
};

Expand Down
5 changes: 4 additions & 1 deletion x-pack/legacy/plugins/spaces/public/legacy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@ const legacyAPI = {
},
};

((npSetup.plugins as any).spaces as SpacesPluginSetup).registerLegacyAPI(legacyAPI);
const spaces = (npSetup.plugins as any).spaces as SpacesPluginSetup;
if (spaces) {
spaces.registerLegacyAPI(legacyAPI);
}

0 comments on commit 3f24902

Please sign in to comment.