@@ -28,8 +28,8 @@ let forward: any;
2828beforeEach ( ( ) => {
2929 client = {
3030 url : 'url_stub' ,
31- createRequestOperation : jest . fn ( ( operationName , data , meta ) => ( {
32- operationName ,
31+ createRequestOperation : jest . fn ( ( kind , data , meta ) => ( {
32+ kind ,
3333 ...data ,
3434 context : {
3535 meta,
@@ -97,7 +97,7 @@ describe('on operation', () => {
9797 describe ( 'on execute' , ( ) => {
9898 it ( 'dispatches debug "update" event' , ( ) => {
9999 const operation = {
100- operationName : 'query' ,
100+ kind : 'query' ,
101101 } ;
102102
103103 const { source, next } = makeSubject < any > ( ) ;
@@ -117,7 +117,7 @@ describe('on operation', () => {
117117 },
118118 "message": "The client has received an execute command.",
119119 "operation": Object {
120- "operationName ": "query",
120+ "kind ": "query",
121121 },
122122 "source": "devtoolsExchange",
123123 "timestamp": 1234,
@@ -134,7 +134,7 @@ describe('on operation', () => {
134134 describe ( 'on teardown' , ( ) => {
135135 it ( 'dispatches debug "teardown" event' , ( ) => {
136136 const operation = {
137- operationName : 'teardown' ,
137+ kind : 'teardown' ,
138138 } ;
139139
140140 const { source, next } = makeSubject < any > ( ) ;
@@ -152,7 +152,7 @@ describe('on operation', () => {
152152 "data": undefined,
153153 "message": "The operation has been torn down",
154154 "operation": Object {
155- "operationName ": "teardown",
155+ "kind ": "teardown",
156156 },
157157 "source": "devtoolsExchange",
158158 "timestamp": 1234,
@@ -168,7 +168,7 @@ describe('on operation', () => {
168168
169169 it ( 'forwards operations' , ( ) => {
170170 const operation = {
171- operationName : 'query' ,
171+ kind : 'query' ,
172172 key : 1 ,
173173 } ;
174174
@@ -198,7 +198,7 @@ describe('on operation response', () => {
198198 describe ( 'on data' , ( ) => {
199199 it ( 'dispatches update event' , ( ) => {
200200 const operation = {
201- operationName : 'mutation' ,
201+ kind : 'mutation' ,
202202 } ;
203203 forward . mockImplementation ( ( o ) =>
204204 map ( ( operation ) => ( {
@@ -228,7 +228,7 @@ describe('on operation response', () => {
228228 },
229229 "message": "The operation has returned a new response.",
230230 "operation": Object {
231- "operationName ": "mutation",
231+ "kind ": "mutation",
232232 },
233233 "source": "devtoolsExchange",
234234 "timestamp": 1234,
@@ -245,7 +245,7 @@ describe('on operation response', () => {
245245 describe ( 'on error' , ( ) => {
246246 it ( 'dispatches update event' , ( ) => {
247247 const operation = {
248- operationName : 'mutation' ,
248+ kind : 'mutation' ,
249249 } ;
250250 forward . mockImplementation ( ( o ) =>
251251 map ( ( operation ) => ( {
@@ -274,7 +274,7 @@ describe('on operation response', () => {
274274 },
275275 "message": "The operation has returned a new error.",
276276 "operation": Object {
277- "operationName ": "mutation",
277+ "kind ": "mutation",
278278 },
279279 "source": "devtoolsExchange",
280280 "timestamp": 1234,
@@ -322,7 +322,7 @@ describe('on request message', () => {
322322 },
323323 },
324324 "key": 1063934861,
325- "operationName ": "query",
325+ "kind ": "query",
326326 "query": Object {
327327 "definitions": Array [
328328 Object {
0 commit comments