consul/ui/packages/consul-ui/tests/pages/dc/acls/roles/edit.js

11 lines
377 B
JavaScript

export default function (visitable, submitable, deletable, cancelable, policySelector, tokenList) {
return {
visit: visitable(['/:dc/acls/roles/:role', '/:dc/acls/roles/create']),
...submitable({}, 'main form > div'),
...cancelable({}, 'main form > div'),
...deletable({}, 'main form > div'),
policies: policySelector(''),
tokens: tokenList(),
};
}