mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Add todo for unit testing a weird complication without full understanding
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi> Signed-off-by: Mikko Aspiala <mikko.aspiala@houston-inc.com>
This commit is contained in:
parent
78a989a72a
commit
e0d5c41b3b
@ -93,6 +93,7 @@ export class KubeObjectMenu<
|
||||
this.dependencies.hideDetails();
|
||||
const { object, removeAction } = this.props;
|
||||
|
||||
// TODO: currently only branch for removeAction() is unit tested, and store.remove() is not.
|
||||
if (removeAction) await removeAction();
|
||||
else await this.store.remove(object);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user