File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -335,14 +335,37 @@ describe('Logging', function() {
335335 } ) ;
336336
337337 it ( 'should list log entries as a stream' , function ( done ) {
338- log . getEntries ( { pageSize : 1 } )
338+ logging . getEntries ( { pageSize : 1 } )
339339 . on ( 'error' , done )
340340 . once ( 'data' , function ( ) {
341341 this . end ( ) ;
342342 done ( ) ;
343343 } ) ;
344344 } ) ;
345345
346+ describe ( 'log-specific entries' , function ( ) {
347+ before ( function ( done ) {
348+ log . write ( logEntries , options , done ) ;
349+ } ) ;
350+
351+ it ( 'should list log entries' , function ( done ) {
352+ log . getEntries ( { pageSize : 1 } , function ( err , entries ) {
353+ assert . ifError ( err ) ;
354+ assert . strictEqual ( entries . length , 1 ) ;
355+ done ( ) ;
356+ } ) ;
357+ } ) ;
358+
359+ it ( 'should list log entries as a stream' , function ( done ) {
360+ log . getEntries ( { pageSize : 1 } )
361+ . on ( 'error' , done )
362+ . once ( 'data' , function ( ) {
363+ this . end ( ) ;
364+ done ( ) ;
365+ } ) ;
366+ } ) ;
367+ } ) ;
368+
346369 it ( 'should write to a log' , function ( done ) {
347370 log . write ( logEntries , options , done ) ;
348371 } ) ;
You can’t perform that action at this time.
0 commit comments