The config object passed to act expects an action (available actions)
and additional keys that are required to perform the action.
If you don't know the required keys for an action, either call act without additional keys or look it up in the source.
For example, this is how the entryList function looks:
exportasyncfunctionentryList(config) { let { env, dmShortID, model, options = {} } = config; expect({ env, dmShortID, model }); // more stuff }
The call to expect shows which keys are expected to be set.
The act function converts a single
configobject param into a fetch request:The
configobject passed toactexpects anaction(available actions) and additional keys that are required to perform the action. If you don't know the required keys for an action, either callactwithout additional keys or look it up in the source. For example, this is how theentryListfunction looks:The call to
expectshows which keys are expected to be set.