@@ -32,18 +32,12 @@ describe('GetAccountLimits', () => {
3232 assert . deepStrictEqual ( lastRequestData . data , expectedData ) ;
3333 } ) ;
3434
35- it ( 'should call the request method with default parameters when accountName is not provided' , ( ) => {
35+ it ( 'should throw an error when accountName is not provided' , ( ) => {
3636 client = createClient ( true ) ;
3737 const callback = ( ) => { } ;
38- client . getAccountLimits ( undefined , callback ) ;
39- const expectedData = {
40- Action : 'GetAccountLimits' ,
41- Version : '2010-05-08' ,
42- } ;
43- assert . strictEqual ( lastRequestData . method , 'POST' ) ;
44- assert . strictEqual ( lastRequestData . path , '/' ) ;
45- assert . strictEqual ( lastRequestData . iamAuthenticate , true ) ;
46- assert . deepStrictEqual ( lastRequestData . data , expectedData ) ;
38+ assert . throws ( ( ) => {
39+ client . getAccountLimits ( undefined , callback ) ;
40+ } , / t h e a c c o u n t n a m e s h o u l d b e a s t r i n g / ) ;
4741 } ) ;
4842
4943 it ( 'should throw an error if accountName is not a string' , ( ) => {
@@ -52,7 +46,7 @@ describe('GetAccountLimits', () => {
5246 const callback = ( ) => { } ;
5347 assert . throws ( ( ) => {
5448 client . getAccountLimits ( accountName , callback ) ;
55- } , / t h e a c c o u n t n a m e , i f s e t , s h o u l d b e a s t r i n g / ) ;
49+ } , / t h e a c c o u n t n a m e s h o u l d b e a s t r i n g / ) ;
5650 } ) ;
5751
5852 it ( 'should not throw an error if accountName is not a string and parameterValidation is false' , ( ) => {
0 commit comments