@@ -25,13 +25,11 @@ describe('Persisted Documents', () => {
2525 query : print ( HelloQuery ) ,
2626 } ) ,
2727 } ) ;
28- expect ( await result . json ( ) ) . toMatchInlineSnapshot ( `
29- {
30- "data": {
31- "hello": "Hello world!",
32- },
33- }
34- ` ) ;
28+ expect ( await result . json ( ) ) . toMatchObject ( {
29+ "data" : {
30+ "hello" : "Hello world!" ,
31+ } ,
32+ } ) ;
3533 } ) ;
3634
3735 it ( 'can not execute arbitrary operation with persisted operations enabled' , async ( ) => {
@@ -46,15 +44,13 @@ describe('Persisted Documents', () => {
4644 query : print ( HelloQuery ) ,
4745 } ) ,
4846 } ) ;
49- expect ( await result . json ( ) ) . toMatchInlineSnapshot ( `
50- {
51- "errors": [
52- {
53- "message": "PersistedQueryOnly",
54- },
55- ],
56- }
57- ` ) ;
47+ expect ( await result . json ( ) ) . toMatchObject ( {
48+ "errors" : [
49+ {
50+ "message" : "PersistedQueryOnly" ,
51+ } ,
52+ ] ,
53+ } ) ;
5854 } ) ;
5955
6056 it ( 'can execute persisted operation with persisted operations enabled' , async ( ) => {
@@ -75,12 +71,10 @@ describe('Persisted Documents', () => {
7571 } ) ,
7672 } ) ;
7773
78- expect ( await result . json ( ) ) . toMatchInlineSnapshot ( `
79- {
80- "data": {
81- "hello": "Hello world!",
82- },
83- }
84- ` ) ;
74+ expect ( await result . json ( ) ) . toMatchObject ( {
75+ "data" : {
76+ "hello" : "Hello world!" ,
77+ } ,
78+ } ) ;
8579 } ) ;
8680} ) ;
0 commit comments