@@ -389,23 +389,6 @@ describe('Logging', () => {
389389 await logging . createSink ( SINK_NAME , config ) ;
390390 } ) ;
391391
392- it ( 'should not add projectId if resourceNames is provided' , async ( ) => {
393- const resourceNames = [ 'projects/other-project/buckets/my-bucket' ] ;
394- const options = {
395- resourceNames : resourceNames ,
396- } ;
397-
398- logging . loggingService . listLogEntries = async (
399- // eslint-disable-next-line @typescript-eslint/no-explicit-any
400- reqOpts : any
401- ) => {
402- assert . deepStrictEqual ( reqOpts . resourceNames , resourceNames ) ;
403- return [ [ ] ] ;
404- } ;
405-
406- await logging . getEntries ( options ) ;
407- } ) ;
408-
409392 it ( 'should accept GAX options' , async ( ) => {
410393 const config = {
411394 a : 'b' ,
@@ -521,6 +504,23 @@ describe('Logging', () => {
521504 await logging . getEntries ( ) ;
522505 } ) ;
523506
507+ it ( 'should not add projectId if resourceNames is provided' , async ( ) => {
508+ const resourceNames = [ 'projects/other-project/buckets/my-bucket' ] ;
509+ const options = {
510+ resourceNames : resourceNames ,
511+ } ;
512+
513+ logging . loggingService . listLogEntries = async (
514+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
515+ reqOpts : any
516+ ) => {
517+ assert . deepStrictEqual ( reqOpts . resourceNames , resourceNames ) ;
518+ return [ [ ] ] ;
519+ } ;
520+
521+ await logging . getEntries ( options ) ;
522+ } ) ;
523+
524524 it ( 'should accept options (and not overwrite timestamp)' , async ( ) => {
525525 const options = { filter : 'timestamp > "2020-11-11T15:01:23.045123456Z"' } ;
526526
0 commit comments