open-consul/ui-v2/tests/pages/components/policy-form.js

12 lines
313 B
JavaScript

export default (submitable, cancelable, radiogroup) => () => {
return {
// this should probably be settable
resetScope: true,
scope: '[data-test-policy-form]',
prefix: 'policy',
...submitable(),
...cancelable(),
...radiogroup('template', ['', 'service-identity'], 'policy'),
};
};