Skip to content

Commit

Permalink
fix: bump node-fetch from 2.6.1 to 3.1.1 (#7782)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] committed Jan 22, 2022
1 parent f105d7a commit 9082351
Show file tree
Hide file tree
Showing 3 changed files with 113 additions and 12 deletions.
103 changes: 100 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -97,7 +97,7 @@
"mock-mail-adapter": "file:spec/dependencies/mock-mail-adapter",
"mongodb-runner": "4.8.1",
"mongodb-version-list": "1.0.0",
"node-fetch": "2.6.1",
"node-fetch": "3.1.1",
"nyc": "15.1.0",
"prettier": "2.0.5",
"semantic-release": "17.4.6",
Expand Down
20 changes: 12 additions & 8 deletions spec/ParseGraphQLServer.spec.js
@@ -1,7 +1,7 @@
const http = require('http');
const express = require('express');
const req = require('../lib/request');
const fetch = require('node-fetch');
const fetch = (...args) => import('node-fetch').then(({ default: fetch }) => fetch(...args));
const FormData = require('form-data');
const ws = require('ws');
require('./helper');
Expand Down Expand Up @@ -2600,18 +2600,22 @@ describe('ParseGraphQLServer', () => {
// "SecondaryObject:bBRgmzIRRM" < "SecondaryObject:nTMcuVbATY" true
// base64("SecondaryObject:bBRgmzIRRM"") < base64(""SecondaryObject:nTMcuVbATY"") false
// "U2Vjb25kYXJ5T2JqZWN0OmJCUmdteklSUk0=" < "U2Vjb25kYXJ5T2JqZWN0Om5UTWN1VmJBVFk=" false
const originalIds = [getSecondaryObjectsResult.data.secondaryObject2.objectId,
getSecondaryObjectsResult.data.secondaryObject4.objectId];
const originalIds = [
getSecondaryObjectsResult.data.secondaryObject2.objectId,
getSecondaryObjectsResult.data.secondaryObject4.objectId,
];
expect(
findSecondaryObjectsResult.data.secondaryObjects.edges[0].node.objectId
).not.toBe(
findSecondaryObjectsResult.data.secondaryObjects.edges[1].node.objectId
);
).not.toBe(findSecondaryObjectsResult.data.secondaryObjects.edges[1].node.objectId);
expect(
originalIds.includes(findSecondaryObjectsResult.data.secondaryObjects.edges[0].node.objectId)
originalIds.includes(
findSecondaryObjectsResult.data.secondaryObjects.edges[0].node.objectId
)
).toBeTrue();
expect(
originalIds.includes(findSecondaryObjectsResult.data.secondaryObjects.edges[1].node.objectId)
originalIds.includes(
findSecondaryObjectsResult.data.secondaryObjects.edges[1].node.objectId
)
).toBeTrue();

const createPrimaryObjectResult = await apolloClient.mutate({
Expand Down

0 comments on commit 9082351

Please sign in to comment.