Skip to content

Commit

Permalink
use beforeAll instead of beforeEach to set jasmine custumMathcers
Browse files Browse the repository at this point in the history
  • Loading branch information
etpinard committed Mar 23, 2016
1 parent a7cc9dd commit 42b4407
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/jasmine/tests/click_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,11 @@ describe('Test click interactions:', function() {
'yaxis.range[1]': zoomRangeY[1]
};

beforeEach(function() {
beforeAll(function() {
jasmine.addMatchers(customMatchers);
});

beforeEach(function() {
gd = createGraphDiv();
mockCopy = Lib.extendDeep({}, mock);
});
Expand Down

0 comments on commit 42b4407

Please sign in to comment.