@@ -13,23 +13,23 @@ describe('avro', () => {
1313 } )
1414 test
1515 . stdout ( )
16- . command ( [ 'avro' , '-f' , 'test/resources/avro/test-tabular .avro' ] )
16+ . command ( [ 'avro' , '-f' , 'test/resources/avro/person .avro' ] )
1717 . exit ( 0 )
1818 . it ( 'if output is not passed' , ctx => {
1919 expect ( ctx . stdout ) . to . contain ( 'Output file is not provided' )
2020 } )
2121
2222 test
2323 . stdout ( )
24- . command ( [ 'avro' , '-f' , 'test/resources/avro/test-tabular .avro' , '-o' , 'output_file.example' ] )
24+ . command ( [ 'avro' , '-f' , 'test/resources/avro/person .avro' , '-o' , 'output_file.example' ] )
2525 . exit ( 0 )
2626 . it ( 'if command not passed' , ctx => {
2727 expect ( ctx . stdout ) . to . contain ( 'Command is empty or not provided' )
2828 } )
2929
3030 test
3131 . stdout ( )
32- . command ( [ 'avro' , '-f' , 'test/resources/avro/test-tabular .avro' , '-o' , 'output_file.example' , 'unsupported_command' ] )
32+ . command ( [ 'avro' , '-f' , 'test/resources/avro/person .avro' , '-o' , 'output_file.example' , 'unsupported_command' ] )
3333 . exit ( 0 )
3434 . it ( 'if command is invalid' , ctx => {
3535 expect ( ctx . stdout ) . to . contain ( 'Unsupported Command' )
@@ -42,4 +42,12 @@ describe('avro', () => {
4242 . it ( 'if input file path is invalid' , ctx => {
4343 expect ( ctx . stdout ) . to . contain ( 'Unsupported Command' )
4444 } )
45+
46+ test
47+ . stdout ( )
48+ . command ( [ 'avro' , '-f' , 'test/resources/avro/.avro' , '-t' , 'test/resources/avro/schema.avsc' , '-o' , 'output_file.example' , 'get_schema' ] )
49+ . exit ( 0 )
50+ . it ( 'if schema file path is not passed' , ctx => {
51+ expect ( ctx . stdout ) . to . contain ( 'Unsupported Command' )
52+ } )
4553} )
0 commit comments