File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 21
21
'use strict' ;
22
22
23
23
var common = require ( '@google-cloud/common' ) ;
24
- var events = require ( 'events' ) ;
25
24
var is = require ( 'is' ) ;
26
25
var util = require ( 'util' ) ;
27
26
@@ -144,12 +143,11 @@ function Job(bigQuery, id) {
144
143
getMetadata : true
145
144
} ;
146
145
147
- var self = this ;
148
-
149
146
common . Operation . call ( this , {
150
147
parent : bigQuery ,
151
148
baseUrl : '/jobs' ,
152
- id : id
149
+ id : id ,
150
+ methods : methods
153
151
} ) ;
154
152
155
153
this . bigQuery = bigQuery ;
Original file line number Diff line number Diff line change @@ -84,6 +84,11 @@ describe('BigQuery/Job', function() {
84
84
assert . strictEqual ( calledWith . parent , BIGQUERY ) ;
85
85
assert . strictEqual ( calledWith . baseUrl , '/jobs' ) ;
86
86
assert . strictEqual ( calledWith . id , JOB_ID ) ;
87
+ assert . deepEqual ( calledWith . methods , {
88
+ exists : true ,
89
+ get : true ,
90
+ getMetadata : true
91
+ } ) ;
87
92
} ) ;
88
93
89
94
describe ( 'request interceptor' , function ( ) {
You can’t perform that action at this time.
0 commit comments