File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -615,7 +615,8 @@ describe('KbRoute', () => {
615615 type : "text" ,
616616 source : "example_text1" ,
617617 content : "Example text" ,
618- namespace : namespace_id
618+ namespace : namespace_id ,
619+ tags : [ "test" , "example" ]
619620 }
620621
621622 chai . request ( server )
@@ -631,14 +632,18 @@ describe('KbRoute', () => {
631632 res . body . should . be . a ( 'object' ) ;
632633
633634 let realResponse = res . body . data ;
635+ console . log ( "realResponse: " , realResponse ) ;
634636 expect ( realResponse . value . id_project ) . to . equal ( namespace_id )
635637 expect ( realResponse . value . name ) . to . equal ( "example_text1" )
636638 expect ( realResponse . value . type ) . to . equal ( "text" )
637639 expect ( realResponse . value . source ) . to . equal ( "example_text1" )
638640 expect ( realResponse . value . status ) . to . equal ( - 1 )
639641 expect ( typeof realResponse . value . scrape_type === "undefined" ) . to . be . true ;
640642 expect ( typeof realResponse . value . scrape_options === "undefined" ) . to . be . true ;
641-
643+ expect ( realResponse . value . tags . length ) . to . equal ( 2 ) ;
644+ expect ( realResponse . value . tags [ 0 ] ) . to . equal ( "test" ) ;
645+ expect ( realResponse . value . tags [ 1 ] ) . to . equal ( "example" ) ;
646+
642647 done ( ) ;
643648 } )
644649 } )
You can’t perform that action at this time.
0 commit comments