-
Notifications
You must be signed in to change notification settings - Fork 331
/
Copy pathindex.js
27 lines (22 loc) · 859 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import {acquireChart, addMatchers, releaseCharts, specsFromFixtures, triggerMouseEvent, afterEvent} from 'chartjs-test-utils';
import {testEvents} from './events';
import {createCanvas, getAnnotationElements, scatter10x10, stringifyObject} from './utils';
import * as helpers from '../src/helpers';
window.helpers = helpers;
window.devicePixelRatio = 1;
window.acquireChart = acquireChart;
window.afterEvent = afterEvent;
window.triggerMouseEvent = triggerMouseEvent;
window.testEvents = testEvents;
window.createCanvas = createCanvas;
window.getAnnotationElements = getAnnotationElements;
window.scatter10x10 = scatter10x10;
window.stringifyObject = stringifyObject;
jasmine.fixtures = specsFromFixtures;
beforeEach(function() {
addMatchers();
});
afterEach(function() {
releaseCharts();
});
console.warn('Testing with chart.js v' + Chart.version);