@@ -15,53 +15,53 @@ describe('LiveTailSession', async function () {
1515
1616 it ( 'builds StartLiveTailCommand: no stream Filter, no event filter.' , function ( ) {
1717 const session = buildLiveTailSession ( { type : 'all' } , undefined )
18- validateStartLiveTailCommand (
19- session . buildStartLiveTailCommand ( ) ,
18+ assert . deepStrictEqual (
19+ session . buildStartLiveTailCommand ( ) . input ,
2020 new StartLiveTailCommand ( {
2121 logGroupIdentifiers : [ testLogGroupArn ] ,
2222 logEventFilterPattern : undefined ,
2323 logStreamNamePrefixes : undefined ,
2424 logStreamNames : undefined ,
25- } )
25+ } ) . input
2626 )
2727 } )
2828
2929 it ( 'builds StartLiveTailCommand: with prefix stream Filter' , function ( ) {
3030 const session = buildLiveTailSession ( { type : 'prefix' , filter : testFilter } , undefined )
31- validateStartLiveTailCommand (
32- session . buildStartLiveTailCommand ( ) ,
31+ assert . deepStrictEqual (
32+ session . buildStartLiveTailCommand ( ) . input ,
3333 new StartLiveTailCommand ( {
3434 logGroupIdentifiers : [ testLogGroupArn ] ,
3535 logEventFilterPattern : undefined ,
3636 logStreamNamePrefixes : [ testFilter ] ,
3737 logStreamNames : undefined ,
38- } )
38+ } ) . input
3939 )
4040 } )
4141
4242 it ( 'builds StartLiveTailCommand: with specific stream Filter' , function ( ) {
4343 const session = buildLiveTailSession ( { type : 'specific' , filter : testFilter } , undefined )
44- validateStartLiveTailCommand (
45- session . buildStartLiveTailCommand ( ) ,
44+ assert . deepStrictEqual (
45+ session . buildStartLiveTailCommand ( ) . input ,
4646 new StartLiveTailCommand ( {
4747 logGroupIdentifiers : [ testLogGroupArn ] ,
4848 logEventFilterPattern : undefined ,
4949 logStreamNamePrefixes : undefined ,
5050 logStreamNames : [ testFilter ] ,
51- } )
51+ } ) . input
5252 )
5353 } )
5454
5555 it ( 'builds StartLiveTailCommand: with log event Filter' , function ( ) {
5656 const session = buildLiveTailSession ( { type : 'all' } , testFilter )
57- validateStartLiveTailCommand (
58- session . buildStartLiveTailCommand ( ) ,
57+ assert . deepStrictEqual (
58+ session . buildStartLiveTailCommand ( ) . input ,
5959 new StartLiveTailCommand ( {
6060 logGroupIdentifiers : [ testLogGroupArn ] ,
6161 logEventFilterPattern : testFilter ,
6262 logStreamNamePrefixes : undefined ,
6363 logStreamNames : undefined ,
64- } )
64+ } ) . input
6565 )
6666 } )
6767
@@ -77,8 +77,4 @@ describe('LiveTailSession', async function () {
7777 awsCredentials : testAwsCredentials ,
7878 } )
7979 }
80-
81- function validateStartLiveTailCommand ( actual : StartLiveTailCommand , expected : StartLiveTailCommand ) {
82- assert . strictEqual ( JSON . stringify ( actual ) , JSON . stringify ( expected ) )
83- }
8480} )
0 commit comments