Fix tests

This commit is contained in:
Evert Timberg 2016-05-26 19:22:11 -04:00
parent 46fc96bf4d
commit ae01f1726c

View File

@ -1,5 +1,14 @@
// Plugin tests
describe('Test the plugin system', function() {
var oldPlugins;
beforeAll(function() {
oldPlugins = Chart.plugins;
});
afterAll(function() {
Chart.plugins = oldPlugins;
});
beforeEach(function() {
Chart.plugins = [];
});