Skip to content

Commit 5ffefc5

Browse files
committed
wip: fix test
1 parent 986b8a2 commit 5ffefc5

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

spec/ParseGraphQLServer.spec.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9116,7 +9116,7 @@ describe('ParseGraphQLServer', () => {
91169116
});
91179117

91189118
const body = new FormData();
9119-
body.set(
9119+
body.append(
91209120
'operations',
91219121
JSON.stringify({
91229122
query: `
@@ -9136,8 +9136,8 @@ describe('ParseGraphQLServer', () => {
91369136
},
91379137
})
91389138
);
9139-
body.set('map', JSON.stringify({ 1: ['variables.input.upload'] }));
9140-
body.set('1', 'My File Content', {
9139+
body.append('map', JSON.stringify({ 1: ['variables.input.upload'] }));
9140+
body.append('1', 'My File Content', {
91419141
filename: 'myFileName.txt',
91429142
contentType: 'text/plain',
91439143
});
@@ -9150,8 +9150,6 @@ describe('ParseGraphQLServer', () => {
91509150
body,
91519151
});
91529152

9153-
console.log(await res.text());
9154-
91559153
expect(res.status).toEqual(200);
91569154

91579155
const result = JSON.parse(await res.text());

0 commit comments

Comments
 (0)