File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -612,4 +612,32 @@ describe("Tour", () => {
612
612
expect ( mockTour . hasStarted ( ) ) . toBeFalsy ( ) ;
613
613
} ) ;
614
614
} ) ;
615
+
616
+ test ( "should have tooltipRenderAsHtml option set as false" , async ( ) => {
617
+ // Arrange
618
+ const mockTour = getMockTour ( ) ;
619
+ mockTour . setOptions ( {
620
+ tooltipRenderAsHtml : false ,
621
+ } ) ;
622
+
623
+ // Act
624
+ await mockTour . start ( ) ;
625
+
626
+ // Assert
627
+ expect ( mockTour . getOption ( "tooltipRenderAsHtml" ) ) . toBeFalsy ( ) ;
628
+ } ) ;
629
+
630
+ test ( "should have tooltipRenderAsHtml option set as true" , async ( ) => {
631
+ // Arrange
632
+ const mockTour = getMockTour ( ) ;
633
+ mockTour . setOptions ( {
634
+ tooltipRenderAsHtml : true ,
635
+ } ) ;
636
+
637
+ // Act
638
+ await mockTour . start ( ) ;
639
+
640
+ // Assert
641
+ expect ( mockTour . getOption ( "tooltipRenderAsHtml" ) ) . toBeTruthy ( ) ;
642
+ } ) ;
615
643
} ) ;
You can’t perform that action at this time.
0 commit comments