Skip to content

Commit 42b4407

Browse files
committed
use beforeAll instead of beforeEach to set jasmine custumMathcers
1 parent a7cc9dd commit 42b4407

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/jasmine/tests/click_test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,11 @@ describe('Test click interactions:', function() {
116116
'yaxis.range[1]': zoomRangeY[1]
117117
};
118118

119-
beforeEach(function() {
119+
beforeAll(function() {
120120
jasmine.addMatchers(customMatchers);
121+
});
121122

123+
beforeEach(function() {
122124
gd = createGraphDiv();
123125
mockCopy = Lib.extendDeep({}, mock);
124126
});

0 commit comments

Comments
 (0)