mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Update test and then fix it
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
11d587a97c
commit
9103d4df98
@ -166,6 +166,8 @@ describe("entity running technical tests", () => {
|
|||||||
|
|
||||||
rendered.getByTestId("detail-panel-hot-bar-icon").click();
|
rendered.getByTestId("detail-panel-hot-bar-icon").click();
|
||||||
|
|
||||||
|
await flushPromises();
|
||||||
|
|
||||||
expect(onRun).not.toHaveBeenCalled();
|
expect(onRun).not.toHaveBeenCalled();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -249,6 +249,8 @@ export class CatalogEntityRegistry {
|
|||||||
|
|
||||||
if (!doOnRun) {
|
if (!doOnRun) {
|
||||||
this.dependencies.logger.debug(`onBeforeRun for ${entity.getId()} returned false`);
|
this.dependencies.logger.debug(`onBeforeRun for ${entity.getId()} returned false`);
|
||||||
|
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
await entity.onRun?.({
|
await entity.onRun?.({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user