Fixed custom integrations tests

This commit is contained in:
Kevin Ansfield 2019-02-22 11:11:15 +07:00
parent 68e684453d
commit 06f88277f5
2 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,9 @@ export default function mockIntegrations(server) {
let body = JSON.parse(requestBody);
let [params] = body.integrations;
// all integrations created via the API have a type of 'custom'
params.type = 'custom';
if (!params.name) {
return new Response(422, {}, {errors: [{
errorType: 'ValidationError',

View File

@ -6,6 +6,7 @@ export default Factory.extend({
slug() { return this.name.toLowerCase().replace(' ', '-'); },
description: null,
iconImage: null,
type: 'custom',
createdAt() { return moment.utc().format(); },
createdBy: 1,