@@ -92,7 +92,8 @@ describe('Logging', () => {
9292 describe ( 'sinks' , ( ) => {
9393 it ( 'should create a sink with a Bucket destination' , async ( ) => {
9494 const sink = logging . sink ( generateName ( ) ) ;
95- const [ _ , apiResponse ] = await sink . create ( {
95+ // tslint:disable-next-line no-any
96+ const [ _ , apiResponse ] = await ( sink as any ) . create ( {
9697 destination : bucket ,
9798 } ) ;
9899 const destination = 'storage.googleapis.com/' + bucket . name ;
@@ -101,11 +102,13 @@ describe('Logging', () => {
101102
102103 it ( 'should create a sink with a Dataset destination' , async ( ) => {
103104 const sink = logging . sink ( generateName ( ) ) ;
104- const [ _ , apiResponse ] = await sink . create (
105- {
106- destination : dataset ,
107- } ,
108- ) ;
105+ // tslint:disable-next-line no-any
106+ const [ _ , apiResponse ] = await ( sink as any )
107+ . create (
108+ {
109+ destination : dataset ,
110+ } ,
111+ ) ;
109112
110113 const destination = `bigquery.googleapis.com/datasets/${ dataset . id } ` ;
111114
@@ -118,7 +121,8 @@ describe('Logging', () => {
118121
119122 it ( 'should create a sink with a Topic destination' , async ( ) => {
120123 const sink = logging . sink ( generateName ( ) ) ;
121- const [ _ , apiResponse ] = await sink . create ( { destination : topic } ) ;
124+ // tslint:disable-next-line no-any
125+ const [ _ , apiResponse ] = await ( sink as any ) . create ( { destination : topic } ) ;
122126 const destination = 'pubsub.googleapis.com/' + topic . name ;
123127
124128 // The projectId may have been replaced depending on how the system
@@ -138,12 +142,14 @@ describe('Logging', () => {
138142
139143 it ( 'should set metadata' , async ( ) => {
140144 const metadata = { filter : FILTER } ;
141- const [ apiResponse ] = await sink . setMetadata ( metadata ) ;
145+ // tslint:disable-next-line no-any
146+ const [ apiResponse ] = await ( sink as any ) . setMetadata ( metadata ) ;
142147 assert . strictEqual ( apiResponse . filter , FILTER ) ;
143148 } ) ;
144149
145150 it ( 'should set a filter' , async ( ) => {
146- const [ apiResponse ] = await sink . setFilter ( FILTER ) ;
151+ // tslint:disable-next-line no-any
152+ const [ apiResponse ] = await ( sink as any ) . setFilter ( FILTER ) ;
147153 assert . strictEqual ( apiResponse . filter , FILTER ) ;
148154 } ) ;
149155 } ) ;
0 commit comments