]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Remove outdated element tests (#6869)
authorBen McCann <322311+benmccann@users.noreply.github.com>
Wed, 1 Jan 2020 21:02:17 +0000 (15:02 -0600)
committerEvert Timberg <evert.timberg+github@gmail.com>
Wed, 1 Jan 2020 21:02:17 +0000 (16:02 -0500)
test/specs/element.arc.tests.js
test/specs/element.point.tests.js
test/specs/element.rectangle.tests.js

index bc47a2752e38bdec670192e9a67a424a827a182c..22e7d421a00f6f9452315b8e824dc6454b57396a 100644 (file)
@@ -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({
index 6d14fe8ce9bc8b203609a99e8f75dc98405de45e..077d2f0252ff70ae8fa3bef390adc53548490942 100644 (file)
@@ -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({
index e85d7f2027c247507050d54ba054b354ff85b2ce..571c1cd47429df6127d808927fe1c2b68a30e945 100644 (file)
@@ -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,