Based on https://github.com/orourkedd/effects-as-data#usage:
Given this function:
const actions isFailure = const pluck = const getListOfNames = const saveRepositories = { const payload: username = actionsprompt'\nEnter a github username: ' const repos = actions const names = actions return names} moduleexports = saveRepositories
effects-as-data
test would look like:
The
effects-as-data-semantic-test
test would look like:
The const args = ;
API
args
is the only function exposed initially. Should be what the functions arguments are.
Returns { calls }
calls
is the action/command object that is called.
Returns { returns }
returns
is what the action/command returns. Use calls
for additional action/command calls or end
to finish the function.
Returns { calls, end }
end
what the function returns. Returns the expected array of tuples for ead testing.