Update test and then fix it

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2023-03-03 10:36:36 -05:00
1 parent 11d587a97c
commit 9103d4df98
2 files changed
+4

No files matched your search

@@ -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?.({