@@ -13,6 +13,37 @@ class TestProgressbarComponent extends ProgressbarComponent {}
1313describe ( 'Component: Progress Bar' , ( ) => {
1414 let fixture : ComponentFixture < TestProgressbarComponent > ;
1515 let element : any ;
16+ let component : ProgressbarComponent ;
17+
18+ it ( 'check animate setter when _animate is equal to setter\'s argument' , ( ) => {
19+ TestBed . configureTestingModule ( {
20+ declarations : [ TestProgressbarComponent ] ,
21+ imports : [ ProgressbarModule . forRoot ( ) ]
22+ } ) ;
23+ fixture = TestBed . createComponent ( TestProgressbarComponent ) ;
24+ component = fixture . componentInstance ;
25+ component . _animate = false ;
26+ component . bars = [ { } ] ;
27+
28+ component . animate = true ;
29+
30+ expect ( component . _animate ) . toBeTruthy ( ) ;
31+ } ) ;
32+
33+ it ( 'check striped setter when _striped is equal to setter\'s argument' , ( ) => {
34+ TestBed . configureTestingModule ( {
35+ declarations : [ TestProgressbarComponent ] ,
36+ imports : [ ProgressbarModule . forRoot ( ) ]
37+ } ) ;
38+ fixture = TestBed . createComponent ( TestProgressbarComponent ) ;
39+ component = fixture . componentInstance ;
40+ component . _striped = false ;
41+ component . bars = [ { } ] ;
42+
43+ component . striped = true ;
44+
45+ expect ( component . _striped ) . toBeTruthy ( ) ;
46+ } ) ;
1647
1748 it ( 'should work correctly with default values' , ( ) => {
1849 const tpl = `<progressbar></progressbar>` ;
0 commit comments