@@ -85,8 +85,8 @@ describe('ParseGraphQLServer', () => {
85
85
86
86
it ( 'should initialize parseGraphQLSchema with a log controller' , async ( ) => {
87
87
const loggerAdapter = {
88
- log : ( ) => { } ,
89
- error : ( ) => { } ,
88
+ log : ( ) => { } ,
89
+ error : ( ) => { } ,
90
90
} ;
91
91
const parseServer = await global . reconfigureServer ( {
92
92
loggerAdapter,
@@ -441,8 +441,8 @@ describe('ParseGraphQLServer', () => {
441
441
} ,
442
442
} ,
443
443
} ) ;
444
- spyOn ( console , 'warn' ) . and . callFake ( ( ) => { } ) ;
445
- spyOn ( console , 'error' ) . and . callFake ( ( ) => { } ) ;
444
+ spyOn ( console , 'warn' ) . and . callFake ( ( ) => { } ) ;
445
+ spyOn ( console , 'error' ) . and . callFake ( ( ) => { } ) ;
446
446
} ) ;
447
447
448
448
afterEach ( async ( ) => {
@@ -821,7 +821,7 @@ describe('ParseGraphQLServer', () => {
821
821
} ) ;
822
822
823
823
it ( 'should have clientMutationId in call function input' , async ( ) => {
824
- Parse . Cloud . define ( 'hello' , ( ) => { } ) ;
824
+ Parse . Cloud . define ( 'hello' , ( ) => { } ) ;
825
825
826
826
const callFunctionInputFields = (
827
827
await apolloClient . query ( {
@@ -843,7 +843,7 @@ describe('ParseGraphQLServer', () => {
843
843
} ) ;
844
844
845
845
it ( 'should have clientMutationId in call function payload' , async ( ) => {
846
- Parse . Cloud . define ( 'hello' , ( ) => { } ) ;
846
+ Parse . Cloud . define ( 'hello' , ( ) => { } ) ;
847
847
848
848
const callFunctionPayloadFields = (
849
849
await apolloClient . query ( {
@@ -6512,7 +6512,7 @@ describe('ParseGraphQLServer', () => {
6512
6512
) ;
6513
6513
expect (
6514
6514
( await deleteObject ( object4 . className , object4 . id ) ) . data . delete [
6515
- object4 . className . charAt ( 0 ) . toLowerCase ( ) + object4 . className . slice ( 1 )
6515
+ object4 . className . charAt ( 0 ) . toLowerCase ( ) + object4 . className . slice ( 1 )
6516
6516
]
6517
6517
) . toEqual ( { objectId : object4 . id , __typename : 'PublicClass' } ) ;
6518
6518
await expectAsync ( object4 . fetch ( { useMasterKey : true } ) ) . toBeRejectedWith (
@@ -7242,9 +7242,9 @@ describe('ParseGraphQLServer', () => {
7242
7242
it ( 'should send reset password' , async ( ) => {
7243
7243
const clientMutationId = uuidv4 ( ) ;
7244
7244
const emailAdapter = {
7245
- sendVerificationEmail : ( ) => { } ,
7245
+ sendVerificationEmail : ( ) => { } ,
7246
7246
sendPasswordResetEmail : ( ) => Promise . resolve ( ) ,
7247
- sendMail : ( ) => { } ,
7247
+ sendMail : ( ) => { } ,
7248
7248
} ;
7249
7249
parseServer = await global . reconfigureServer ( {
7250
7250
appName : 'test' ,
@@ -7282,11 +7282,11 @@ describe('ParseGraphQLServer', () => {
7282
7282
const clientMutationId = uuidv4 ( ) ;
7283
7283
let resetPasswordToken ;
7284
7284
const emailAdapter = {
7285
- sendVerificationEmail : ( ) => { } ,
7285
+ sendVerificationEmail : ( ) => { } ,
7286
7286
sendPasswordResetEmail : ( { link } ) => {
7287
7287
resetPasswordToken = link . split ( 'token=' ) [ 1 ] . split ( '&' ) [ 0 ] ;
7288
7288
} ,
7289
- sendMail : ( ) => { } ,
7289
+ sendMail : ( ) => { } ,
7290
7290
} ;
7291
7291
parseServer = await global . reconfigureServer ( {
7292
7292
appName : 'test' ,
@@ -7351,9 +7351,9 @@ describe('ParseGraphQLServer', () => {
7351
7351
it ( 'should send verification email again' , async ( ) => {
7352
7352
const clientMutationId = uuidv4 ( ) ;
7353
7353
const emailAdapter = {
7354
- sendVerificationEmail : ( ) => { } ,
7354
+ sendVerificationEmail : ( ) => { } ,
7355
7355
sendPasswordResetEmail : ( ) => Promise . resolve ( ) ,
7356
- sendMail : ( ) => { } ,
7356
+ sendMail : ( ) => { } ,
7357
7357
} ;
7358
7358
parseServer = await global . reconfigureServer ( {
7359
7359
appName : 'test' ,
@@ -9142,8 +9142,6 @@ describe('ParseGraphQLServer', () => {
9142
9142
contentType : 'text/plain' ,
9143
9143
} ) ;
9144
9144
9145
- console . log ( body ) ;
9146
-
9147
9145
let res = await fetch ( 'http://localhost:13377/graphql' , {
9148
9146
method : 'POST' ,
9149
9147
headers,
@@ -9154,6 +9152,7 @@ describe('ParseGraphQLServer', () => {
9154
9152
9155
9153
const result = JSON . parse ( await res . text ( ) ) ;
9156
9154
9155
+ console . log ( result . errors )
9157
9156
expect ( result . data . createFile . fileInfo . name ) . toEqual (
9158
9157
jasmine . stringMatching ( / _ m y F i l e N a m e .t x t $ / )
9159
9158
) ;
@@ -10550,25 +10549,25 @@ describe('ParseGraphQLServer', () => {
10550
10549
} ,
10551
10550
} ) ;
10552
10551
const SomeClassType = new GraphQLObjectType ( {
10553
- name : 'SomeClass' ,
10554
- fields : {
10555
- nameUpperCase : {
10556
- type : new GraphQLNonNull ( GraphQLString ) ,
10557
- resolve : p => p . name . toUpperCase ( ) ,
10558
- } ,
10559
- type : { type : TypeEnum } ,
10560
- language : {
10561
- type : new GraphQLEnumType ( {
10562
- name : 'LanguageEnum' ,
10563
- values : {
10564
- fr : { value : 'fr' } ,
10565
- en : { value : 'en' } ,
10566
- } ,
10567
- } ) ,
10568
- resolve : ( ) => 'fr' ,
10569
- } ,
10552
+ name : 'SomeClass' ,
10553
+ fields : {
10554
+ nameUpperCase : {
10555
+ type : new GraphQLNonNull ( GraphQLString ) ,
10556
+ resolve : p => p . name . toUpperCase ( ) ,
10570
10557
} ,
10571
- } ) ,
10558
+ type : { type : TypeEnum } ,
10559
+ language : {
10560
+ type : new GraphQLEnumType ( {
10561
+ name : 'LanguageEnum' ,
10562
+ values : {
10563
+ fr : { value : 'fr' } ,
10564
+ en : { value : 'en' } ,
10565
+ } ,
10566
+ } ) ,
10567
+ resolve : ( ) => 'fr' ,
10568
+ } ,
10569
+ } ,
10570
+ } ) ,
10572
10571
parseGraphQLServer = new ParseGraphQLServer ( parseServer , {
10573
10572
graphQLPath : '/graphql' ,
10574
10573
graphQLCustomTypeDefs : new GraphQLSchema ( {
0 commit comments