Skip to content

Commit 919418a

Browse files
authored
Merge pull request #609 from amarie401/fix-class-utest
chore(pfTrendsChart): Updated class selector in unit test to string reference
2 parents 833bba8 + d21f4a9 commit 919418a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/charts/trends/trends-chart.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,19 +68,19 @@ describe('Directive: pfTrendsChart', function() {
6868
trendCard = element.find('.trend-card-large-pf');
6969
expect(trendCard.length).toBe(1);
7070
// check small card isn't being shown by default
71-
expect(trendCard.hasClass('.trend-card-small-pf')).toBeFalsy();
71+
expect(trendCard.hasClass('trend-card-small-pf')).toBe(false);
7272

7373
$scope.config.layout = 'small';
7474
$scope.$digest();
7575
trendCard = element.find('.trend-card-small-pf');
7676
expect(trendCard.length).toBe(1);
77-
expect(trendCard.hasClass('.trend-card-large-pf')).toBeFalsy();
77+
expect(trendCard.hasClass('trend-card-large-pf')).toBe(false);
7878

7979
$scope.config.layout = 'large';
8080
$scope.$digest();
8181
trendCard = element.find('.trend-card-large-pf');
8282
expect(trendCard.length).toBe(1);
83-
expect(trendCard.hasClass('.trend-card-small-pf')).toBeFalsy();
83+
expect(trendCard.hasClass('trend-card-small-pf')).toBe(false);
8484
});
8585

8686
it("should show compact card layout", function() {

0 commit comments

Comments
 (0)