fix: json parsing in a test

Signed-off-by: Sam Robson <srobson@gocardless.com>
This commit is contained in:
Sam Robson
2021-05-21 11:28:37 +01:00
parent ef2f928f4a
commit 79ce75ed46
+16 -16
View File
@@ -48,16 +48,16 @@ export const responseStub: QueryResponse = {
commitUrl: 'https://exampleapi.com/123456789',
abbreviatedOid: '12345',
},
creator: {
login: 'robot-user-001',
},
statuses: {
nodes: [{ logUrl: 'taskrun/example-run' }],
},
creator: {
login: 'robot-user-001',
},
repository: {
nameWithOwner: 'org/owner',
},
payload: '',
payload: '{"target":"moon"}',
},
{
state: 'pending',
@@ -67,16 +67,16 @@ export const responseStub: QueryResponse = {
commitUrl: 'https://exampleapi.com/543212345',
abbreviatedOid: '54321',
},
statuses: {
nodes: [{ logUrl: 'taskrun/example-run' }],
},
creator: {
login: 'robot-user-001',
},
statuses: {
nodes: [{ logUrl: '' }],
},
repository: {
nameWithOwner: 'org/owner',
},
payload: '',
payload: '{"target":"sun"}',
},
],
},
@@ -95,16 +95,16 @@ export const refreshedResponseStub: QueryResponse = {
commitUrl: 'https://exampleapi.com/123456789',
abbreviatedOid: '12345',
},
creator: {
login: 'robot-user-001',
},
statuses: {
nodes: [{ logUrl: 'taskrun/example-run' }],
},
creator: {
login: 'robot-user-001',
},
repository: {
nameWithOwner: 'org/owner',
},
payload: '',
payload: '{"target":"moon"}',
},
{
state: 'failure',
@@ -114,16 +114,16 @@ export const refreshedResponseStub: QueryResponse = {
commitUrl: 'https://exampleapi.com/543212345',
abbreviatedOid: '54321',
},
creator: {
login: 'robot-user-001',
},
statuses: {
nodes: [{ logUrl: 'taskrun/example-run' }],
},
creator: {
login: 'robot-user-001',
},
repository: {
nameWithOwner: 'org/owner',
},
payload: '',
payload: '{"target":"sun"}',
},
],
},