@@ -1379,10 +1379,7 @@ describe('scalar card line chart', () => {
1379
1379
minStep : 0 ,
1380
1380
maxStep : 100 ,
1381
1381
} ;
1382
- const scalarCardComponent = fixture . debugElement . query (
1383
- By . directive ( ScalarCardLineChartComponent )
1384
- ) ;
1385
- scalarCardComponent . componentInstance . stepOrLinkedTimeSelection = {
1382
+ fixture . componentInstance . stepOrLinkedTimeSelection = {
1386
1383
start : { step : 20 } ,
1387
1384
end : null ,
1388
1385
} ;
@@ -1425,10 +1422,7 @@ describe('scalar card line chart', () => {
1425
1422
minStep : 0 ,
1426
1423
maxStep : 100 ,
1427
1424
} ;
1428
- const scalarCardComponent = fixture . debugElement . query (
1429
- By . directive ( ScalarCardLineChartComponent )
1430
- ) ;
1431
- scalarCardComponent . componentInstance . stepOrLinkedTimeSelection = {
1425
+ fixture . componentInstance . stepOrLinkedTimeSelection = {
1432
1426
start : { step : 20 } ,
1433
1427
end : { step : 40 } ,
1434
1428
} ;
@@ -1446,10 +1440,7 @@ describe('scalar card line chart', () => {
1446
1440
minStep : 0 ,
1447
1441
maxStep : 100 ,
1448
1442
} ;
1449
- const scalarCardComponent = fixture . debugElement . query (
1450
- By . directive ( ScalarCardLineChartComponent )
1451
- ) ;
1452
- scalarCardComponent . componentInstance . stepOrLinkedTimeSelection = {
1443
+ fixture . componentInstance . stepOrLinkedTimeSelection = {
1453
1444
start : { step : 20 } ,
1454
1445
end : null ,
1455
1446
} ;
@@ -1473,7 +1464,7 @@ describe('scalar card line chart', () => {
1473
1464
testController . mouseMove ( fakeEvent ) ;
1474
1465
1475
1466
// Simulate ngrx update from mouseMove;
1476
- scalarCardComponent . componentInstance . stepOrLinkedTimeSelection = {
1467
+ fixture . componentInstance . stepOrLinkedTimeSelection = {
1477
1468
start : { step : 25 } ,
1478
1469
end : null ,
1479
1470
} ;
@@ -1495,7 +1486,7 @@ describe('scalar card line chart', () => {
1495
1486
testController . mouseMove ( fakeEvent ) ;
1496
1487
1497
1488
// Simulate ngrx update from mouseMove;
1498
- scalarCardComponent . componentInstance . stepOrLinkedTimeSelection = {
1489
+ fixture . componentInstance . stepOrLinkedTimeSelection = {
1499
1490
start : { step : 30 } ,
1500
1491
end : null ,
1501
1492
} ;
@@ -1550,10 +1541,7 @@ describe('scalar card line chart', () => {
1550
1541
minStep : 0 ,
1551
1542
maxStep : 100 ,
1552
1543
} ;
1553
- const scalarCardComponent = fixture . debugElement . query (
1554
- By . directive ( ScalarCardLineChartComponent )
1555
- ) ;
1556
- scalarCardComponent . componentInstance . stepOrLinkedTimeSelection = {
1544
+ fixture . componentInstance . stepOrLinkedTimeSelection = {
1557
1545
start : { step : 20 } ,
1558
1546
end : null ,
1559
1547
} ;
@@ -1716,10 +1704,7 @@ describe('scalar card line chart', () => {
1716
1704
1717
1705
// Click the prospective fob to set the start time
1718
1706
testController . prospectiveFobClicked ( new MouseEvent ( 'mouseclick' ) ) ;
1719
- const scalarCardComponent = fixture . debugElement . query (
1720
- By . directive ( ScalarCardLineChartComponent )
1721
- ) ;
1722
- scalarCardComponent . componentInstance . stepOrLinkedTimeSelection = {
1707
+ fixture . componentInstance . stepOrLinkedTimeSelection = {
1723
1708
start : { step : 10 } ,
1724
1709
end : null ,
1725
1710
} ;
@@ -1743,7 +1728,7 @@ describe('scalar card line chart', () => {
1743
1728
1744
1729
// Click the prospective fob to set the end time
1745
1730
testController . prospectiveFobClicked ( new MouseEvent ( 'mouseclick' ) ) ;
1746
- scalarCardComponent . componentInstance . stepOrLinkedTimeSelection = {
1731
+ fixture . componentInstance . stepOrLinkedTimeSelection = {
1747
1732
start : { step : 10 } ,
1748
1733
end : { step : 25 } ,
1749
1734
} ;
@@ -1783,10 +1768,7 @@ describe('scalar card line chart', () => {
1783
1768
minStep : 10 ,
1784
1769
maxStep : 30 ,
1785
1770
} ;
1786
- const scalarCardComponent = fixture . debugElement . query (
1787
- By . directive ( ScalarCardLineChartComponent )
1788
- ) ;
1789
- scalarCardComponent . componentInstance . stepOrLinkedTimeSelection = {
1771
+ fixture . componentInstance . stepOrLinkedTimeSelection = {
1790
1772
start : { step : 20 } ,
1791
1773
end : null ,
1792
1774
} ;
@@ -1812,10 +1794,7 @@ describe('scalar card line chart', () => {
1812
1794
minStep : 10 ,
1813
1795
maxStep : 30 ,
1814
1796
} ;
1815
- const scalarCardComponent = fixture . debugElement . query (
1816
- By . directive ( ScalarCardLineChartComponent )
1817
- ) ;
1818
- scalarCardComponent . componentInstance . stepOrLinkedTimeSelection = {
1797
+ fixture . componentInstance . stepOrLinkedTimeSelection = {
1819
1798
start : { step : 20 } ,
1820
1799
end : null ,
1821
1800
} ;
@@ -1839,7 +1818,7 @@ describe('scalar card line chart', () => {
1839
1818
testController . mouseMove ( fakeEvent ) ;
1840
1819
1841
1820
// Simulate ngrx update from mouseMove;
1842
- scalarCardComponent . componentInstance . stepOrLinkedTimeSelection = {
1821
+ fixture . componentInstance . stepOrLinkedTimeSelection = {
1843
1822
start : { step : 25 } ,
1844
1823
end : null ,
1845
1824
} ;
@@ -1867,9 +1846,7 @@ describe('scalar card line chart', () => {
1867
1846
} )
1868
1847
) ;
1869
1848
1870
- expect (
1871
- scalarCardComponent . componentInstance . stepOrLinkedTimeSelection
1872
- ) . toEqual ( {
1849
+ expect ( fixture . componentInstance . stepOrLinkedTimeSelection ) . toEqual ( {
1873
1850
start : { step : 25 } ,
1874
1851
end : null ,
1875
1852
} ) ;
@@ -1883,10 +1860,7 @@ describe('scalar card line chart', () => {
1883
1860
minStep : 10 ,
1884
1861
maxStep : 30 ,
1885
1862
} ;
1886
- const scalarCardComponent = fixture . debugElement . query (
1887
- By . directive ( ScalarCardLineChartComponent )
1888
- ) ;
1889
- scalarCardComponent . componentInstance . stepOrLinkedTimeSelection = {
1863
+ fixture . componentInstance . stepOrLinkedTimeSelection = {
1890
1864
start : { step : 20 } ,
1891
1865
end : null ,
1892
1866
} ;
@@ -1910,7 +1884,7 @@ describe('scalar card line chart', () => {
1910
1884
testController . mouseMove ( fakeEvent ) ;
1911
1885
1912
1886
// Simulate ngrx update from mouseMove
1913
- scalarCardComponent . componentInstance . stepOrLinkedTimeSelection = {
1887
+ fixture . componentInstance . stepOrLinkedTimeSelection = {
1914
1888
start : { step : 25 } ,
1915
1889
end : null ,
1916
1890
} ;
0 commit comments