]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fix tests 2640/head
authorEvert Timberg <evert.timberg+github@gmail.com>
Thu, 26 May 2016 23:22:11 +0000 (19:22 -0400)
committerEvert Timberg <evert.timberg+github@gmail.com>
Thu, 26 May 2016 23:22:11 +0000 (19:22 -0400)
test/core.plugin.tests.js

index 5a6891071ef452e48cc19e58c7a5262de9510ccb..520305e3980ae236dd24d166c81824bafcff4aee 100644 (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 = [];
        });