mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 09:03:12 +03:00
Fixed custom integrations tests
This commit is contained in:
parent
68e684453d
commit
06f88277f5
@ -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',
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user