|
1 | 1 | const http = require('http'); |
2 | 2 | const express = require('express'); |
3 | 3 | const req = require('../lib/request'); |
4 | | -const fetch = require('node-fetch'); |
| 4 | +const fetch = (...args) => import('node-fetch').then(({ default: fetch }) => fetch(...args)); |
5 | 5 | const FormData = require('form-data'); |
6 | 6 | const ws = require('ws'); |
7 | 7 | require('./helper'); |
@@ -2600,18 +2600,22 @@ describe('ParseGraphQLServer', () => { |
2600 | 2600 | // "SecondaryObject:bBRgmzIRRM" < "SecondaryObject:nTMcuVbATY" true |
2601 | 2601 | // base64("SecondaryObject:bBRgmzIRRM"") < base64(""SecondaryObject:nTMcuVbATY"") false |
2602 | 2602 | // "U2Vjb25kYXJ5T2JqZWN0OmJCUmdteklSUk0=" < "U2Vjb25kYXJ5T2JqZWN0Om5UTWN1VmJBVFk=" false |
2603 | | - const originalIds = [getSecondaryObjectsResult.data.secondaryObject2.objectId, |
2604 | | - getSecondaryObjectsResult.data.secondaryObject4.objectId]; |
| 2603 | + const originalIds = [ |
| 2604 | + getSecondaryObjectsResult.data.secondaryObject2.objectId, |
| 2605 | + getSecondaryObjectsResult.data.secondaryObject4.objectId, |
| 2606 | + ]; |
2605 | 2607 | expect( |
2606 | 2608 | findSecondaryObjectsResult.data.secondaryObjects.edges[0].node.objectId |
2607 | | - ).not.toBe( |
2608 | | - findSecondaryObjectsResult.data.secondaryObjects.edges[1].node.objectId |
2609 | | - ); |
| 2609 | + ).not.toBe(findSecondaryObjectsResult.data.secondaryObjects.edges[1].node.objectId); |
2610 | 2610 | expect( |
2611 | | - originalIds.includes(findSecondaryObjectsResult.data.secondaryObjects.edges[0].node.objectId) |
| 2611 | + originalIds.includes( |
| 2612 | + findSecondaryObjectsResult.data.secondaryObjects.edges[0].node.objectId |
| 2613 | + ) |
2612 | 2614 | ).toBeTrue(); |
2613 | 2615 | expect( |
2614 | | - originalIds.includes(findSecondaryObjectsResult.data.secondaryObjects.edges[1].node.objectId) |
| 2616 | + originalIds.includes( |
| 2617 | + findSecondaryObjectsResult.data.secondaryObjects.edges[1].node.objectId |
| 2618 | + ) |
2615 | 2619 | ).toBeTrue(); |
2616 | 2620 |
|
2617 | 2621 | const createPrimaryObjectResult = await apolloClient.mutate({ |
|
0 commit comments