From: Evert Timberg Date: Thu, 26 May 2016 23:22:11 +0000 (-0400) Subject: Fix tests X-Git-Tag: v2.1.5~34^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2640%2Fhead;p=thirdparty%2FChart.js.git Fix tests --- 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 = []; });