File tree 1 file changed +9
-10
lines changed
1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -83,21 +83,20 @@ describe('hash', () => {
83
83
expect ( ctx . stdout ) . to . contain ( 'a85a72b0a240abecdf27f127aa75fd8663d6d5be' )
84
84
} )
85
85
86
- //file input - file not found TODO: solve issue #4
87
- test
88
- . stdout ( )
89
- . command ( [ 'hash' , '-f' , 'test/resources/filenotfound.txt' ] )
90
- . exit ( 0 )
91
- . it ( "cdt hash -f 'test/resources/filenotfound.txt'" , ctx => {
92
- expect ( ctx . stdout ) . to . contain ( 'Could not find file' )
93
- } )
94
-
95
86
//file input
96
87
test
97
88
. stdout ( )
98
89
. command ( [ 'hash' , '-f' , 'test/resources/test.txt' ] )
99
- . it ( "cdt hash -f 'test/resources/test.txt'" , ctx => {
90
+ . it ( "File Hashing -> cdt hash -f 'test/resources/test.txt'" , ctx => {
100
91
expect ( ctx . stdout ) . to . contain ( '97ee6255ffc855e79e2324d5495b6538e29034f9' )
101
92
} )
102
93
94
+ //file input - file not found
95
+ test
96
+ . stdout ( )
97
+ . command ( [ 'hash' , '-f' , 'test/resources/filenotfound.txt' ] )
98
+ . exit ( 0 )
99
+ . it ( "If File not found ->cdt hash -f 'test/resources/filenotfound.txt'" , ctx => {
100
+ expect ( ctx . stdout ) . to . contain ( 'Could not find file' )
101
+ } )
103
102
} )
You can’t perform that action at this time.
0 commit comments