fleet/frontend/test/mocks/account_mocks.js
2021-06-06 17:30:54 -07:00

18 lines
382 B
JavaScript

import createRequestMock from "test/mocks/create_request_mock";
import helpers from "fleet/helpers";
export default {
create: {
valid: (unformattedParams) => {
const params = helpers.setupData(unformattedParams);
return createRequestMock({
endpoint: "/api/v1/setup",
method: "post",
params,
response: {},
});
},
},
};