From ae01f1726c209043cf34e0ca2fad875dae4c8eeb Mon Sep 17 00:00:00 2001 From: Evert Timberg Date: Thu, 26 May 2016 19:22:11 -0400 Subject: [PATCH] Fix tests --- test/core.plugin.tests.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/core.plugin.tests.js b/test/core.plugin.tests.js index 5a6891071..520305e39 100644 --- a/test/core.plugin.tests.js +++ b/test/core.plugin.tests.js @@ -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 = []; }); -- 2.47.2