fix: Correct existing subtypes test coverage; add test coverage for

subtype actions; and a subtype action fix.
This commit is contained in:
Daniel J. Geiger 2023-01-02 12:43:19 -06:00
parent 13d69d8cef
commit 67fb3210ab
3 changed files with 143 additions and 62 deletions

View file

@ -43,6 +43,10 @@ export class API {
static addSubtype = (record: SubtypeRecord, subtypePrepFn: SubtypePrepFn) => {
const prep = prepareSubtype(record, subtypePrepFn);
if (prep.actions) {
h.app.actionManager.registerAll(prep.actions);
h.app.actionManager.registerActionGuards();
}
return prep;
};