1
0
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:
Mikko Aspiala 2021-11-05 11:16:11 +02:00 committed by Janne Savolainen
parent 78a989a72a
commit e0d5c41b3b

View File

@ -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);
}