Skip to content

Commit c87b01a

Browse files
committed
better reporting from hover label test
1 parent 7a7dc6d commit c87b01a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/jasmine/tests/hover_label_test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,13 +1077,13 @@ describe('Test hover label custom styling:', function() {
10771077
expect(g.size()).toBe(0);
10781078
} else {
10791079
var path = g.select('path');
1080-
expect(path.style('fill')).toEqual(expectation.path[0], 'bgcolor');
1081-
expect(path.style('stroke')).toEqual(expectation.path[1], 'bordercolor');
1080+
expect(path.style('fill')).toBe(expectation.path[0], 'bgcolor');
1081+
expect(path.style('stroke')).toBe(expectation.path[1], 'bordercolor');
10821082

10831083
var text = g.select({hovertext: 'text.nums', axistext: 'text'}[className]);
1084-
expect(parseInt(text.style('font-size'))).toEqual(expectation.text[0], 'font.size');
1085-
expect(text.style('font-family').split(',')[0]).toEqual(expectation.text[1], 'font.family');
1086-
expect(text.style('fill')).toEqual(expectation.text[2], 'font.color');
1084+
expect(parseInt(text.style('font-size'))).toBe(expectation.text[0], 'font.size');
1085+
expect(text.style('font-family').split(',')[0]).toBe(expectation.text[1], 'font.family');
1086+
expect(text.style('fill')).toBe(expectation.text[2], 'font.color');
10871087
}
10881088
}
10891089

0 commit comments

Comments
 (0)