From f388ed3136a3b62f46e9f0e4c5ef96f175cc1670 Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Wed, 1 Jan 2020 15:02:17 -0600 Subject: [PATCH] Remove outdated element tests (#6869) --- test/specs/element.arc.tests.js | 11 ----------- test/specs/element.point.tests.js | 11 ----------- test/specs/element.rectangle.tests.js | 11 ----------- 3 files changed, 33 deletions(-) diff --git a/test/specs/element.arc.tests.js b/test/specs/element.arc.tests.js index bc47a2752..22e7d421a 100644 --- a/test/specs/element.arc.tests.js +++ b/test/specs/element.arc.tests.js @@ -1,17 +1,6 @@ // Test the rectangle element describe('Arc element tests', function() { - it ('Should be constructed', function() { - var arc = new Chart.elements.Arc({ - _datasetIndex: 2, - _index: 1 - }); - - expect(arc).not.toBe(undefined); - expect(arc._datasetIndex).toBe(2); - expect(arc._index).toBe(1); - }); - it ('should determine if in range', function() { // Mock out the arc as if the controller put it there var arc = new Chart.elements.Arc({ diff --git a/test/specs/element.point.tests.js b/test/specs/element.point.tests.js index 6d14fe8ce..077d2f025 100644 --- a/test/specs/element.point.tests.js +++ b/test/specs/element.point.tests.js @@ -1,17 +1,6 @@ describe('Chart.elements.Point', function() { describe('auto', jasmine.fixture.specs('element.point')); - it ('Should be constructed', function() { - var point = new Chart.elements.Point({ - _datasetIndex: 2, - _index: 1 - }); - - expect(point).not.toBe(undefined); - expect(point._datasetIndex).toBe(2); - expect(point._index).toBe(1); - }); - it ('Should correctly identify as in range', function() { // Mock out the point as if we were made by the controller var point = new Chart.elements.Point({ diff --git a/test/specs/element.rectangle.tests.js b/test/specs/element.rectangle.tests.js index e85d7f202..571c1cd47 100644 --- a/test/specs/element.rectangle.tests.js +++ b/test/specs/element.rectangle.tests.js @@ -1,17 +1,6 @@ // Test the rectangle element describe('Rectangle element tests', function() { - it('Should be constructed', function() { - var rectangle = new Chart.elements.Rectangle({ - _datasetIndex: 2, - _index: 1 - }); - - expect(rectangle).not.toBe(undefined); - expect(rectangle._datasetIndex).toBe(2); - expect(rectangle._index).toBe(1); - }); - it('Should correctly identify as in range', function() { var rectangle = new Chart.elements.Rectangle({ base: 0, -- 2.47.2