@@ -32,24 +32,22 @@ describe("Notification", () => {
3232 } ;
3333 fixture . detectChanges ( ) ;
3434
35- let notification = fixture . nativeElement . querySelector ( ".bx--inline-notification" ) ;
36- expect ( notification . classList . contains ( "bx--inline-notification--info" ) ) . toBeTruthy ( ) ;
35+ expect ( fixture . nativeElement . classList . contains ( "bx--inline-notification--info" ) ) . toBeTruthy ( ) ;
3736 } ) ;
3837
3938 it ( "should render danger notification" , ( ) => {
4039 const fixture = TestBed . createComponent ( Notification ) ;
4140 fixture . componentInstance . notificationObj = {
42- type : "danger " ,
41+ type : "error " ,
4342 title : "sample" ,
4443 message : "sample message"
4544 } ;
4645 fixture . detectChanges ( ) ;
4746
48- let notification = fixture . nativeElement . querySelector ( ".bx--inline-notification" ) ;
49- expect ( notification . classList . contains ( "bx--inline-notification--danger" ) ) . toBeTruthy ( ) ;
47+ expect ( fixture . nativeElement . classList . contains ( "bx--inline-notification--error" ) ) . toBeTruthy ( ) ;
5048 } ) ;
5149
52- it ( "should render info warning" , ( ) => {
50+ it ( "should render info warning notification " , ( ) => {
5351 const fixture = TestBed . createComponent ( Notification ) ;
5452 fixture . componentInstance . notificationObj = {
5553 type : "warning" ,
@@ -58,11 +56,10 @@ describe("Notification", () => {
5856 } ;
5957 fixture . detectChanges ( ) ;
6058
61- let notification = fixture . nativeElement . querySelector ( ".bx--inline-notification" ) ;
62- expect ( notification . classList . contains ( "bx--inline-notification--warning" ) ) . toBeTruthy ( ) ;
59+ expect ( fixture . nativeElement . classList . contains ( "bx--inline-notification--warning" ) ) . toBeTruthy ( ) ;
6360 } ) ;
6461
65- it ( "should render info success" , ( ) => {
62+ it ( "should render info success notification " , ( ) => {
6663 const fixture = TestBed . createComponent ( Notification ) ;
6764 fixture . componentInstance . notificationObj = {
6865 type : "success" ,
@@ -71,8 +68,7 @@ describe("Notification", () => {
7168 } ;
7269 fixture . detectChanges ( ) ;
7370
74- let notification = fixture . nativeElement . querySelector ( ".bx--inline-notification" ) ;
75- expect ( notification . classList . contains ( "bx--inline-notification--success" ) ) . toBeTruthy ( ) ;
71+ expect ( fixture . nativeElement . classList . contains ( "bx--inline-notification--success" ) ) . toBeTruthy ( ) ;
7672 } ) ;
7773
7874 it ( "should display correct message" , ( ) => {
0 commit comments