File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
spring-boot-admin-server-ui/src/main/frontend/components Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -33,4 +33,18 @@ describe('sba-alert', () => {
3333 expect ( screen . getByText ( 'i am a error message' ) ) . toBeDefined ( ) ;
3434 expect ( screen . getByText ( 'This is a caption' ) ) . toBeDefined ( ) ;
3535 } ) ;
36+
37+ it ( 'should render nothing' , ( ) => {
38+ const props = {
39+ title : 'This is a caption' ,
40+ }
41+ render ( sbaAlert , {
42+ props,
43+ stubs : {
44+ 'font-awesome-icon' : true
45+ }
46+ } ) ;
47+
48+ expect ( screen . queryByText ( 'This is a caption' ) ) . not . toBeInTheDocument ( ) ;
49+ } ) ;
3650} )
Original file line number Diff line number Diff line change 1515 -->
1616
1717<template >
18- <div class =" message" :class =" alertClass" role =" alert" v-if =" hasError" >
18+ <div class =" message" :class =" alertClass" role =" alert" v-if =" hasError() " >
1919 <div class =" message-body" >
2020 <strong >
2121 <font-awesome-icon :class =" iconClass" icon =" exclamation-triangle" />  ; <span v-text =" title" />
You can’t perform that action at this time.
0 commit comments