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:
Mikko AspialaandJanne Savolainen authored and Janne Savolainen committed 2021-12-04 12:18:36 +02:00
1 parent 78a989a72a
commit e0d5c41b3b
1 file changed
+1
@@ -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);
}