]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Remove duplicate tests (#7568)
authorBen McCann <322311+benmccann@users.noreply.github.com>
Mon, 6 Jul 2020 13:35:30 +0000 (06:35 -0700)
committerGitHub <noreply@github.com>
Mon, 6 Jul 2020 13:35:30 +0000 (09:35 -0400)
test/specs/scale.time.tests.js

index 1287a75d053931e70af02efd4156564461424181..3300c19fa34b82727afecfb4634a54e1aafdf506 100644 (file)
@@ -187,47 +187,6 @@ describe('Time scale tests', function() {
                });
        });
 
-       describe('when specifying limits in a deprecated fashion', function() {
-               var mockData = {
-                       labels: ['2015-01-01T20:00:00', '2015-01-02T20:00:00', '2015-01-03T20:00:00'],
-               };
-
-               var config;
-               beforeEach(function() {
-                       config = Chart.helpers.clone(Chart.scaleService.getScaleDefaults('time'));
-                       config.ticks.source = 'labels';
-                       config.time.unit = 'day';
-               });
-
-               it('should use the min option when less than first label for building ticks', function() {
-                       config.min = '2014-12-29T04:00:00';
-
-                       var labels = getLabels(createScale(mockData, config));
-                       expect(labels[0]).toEqual('Jan 1');
-               });
-
-               it('should use the min option when greater than first label for building ticks', function() {
-                       config.min = '2015-01-02T04:00:00';
-
-                       var labels = getLabels(createScale(mockData, config));
-                       expect(labels[0]).toEqual('Jan 2');
-               });
-
-               it('should use the max option when greater than last label for building ticks', function() {
-                       config.max = '2015-01-05T06:00:00';
-
-                       var labels = getLabels(createScale(mockData, config));
-                       expect(labels[labels.length - 1]).toEqual('Jan 3');
-               });
-
-               it('should use the max option when less than last label for building ticks', function() {
-                       config.max = '2015-01-02T23:00:00';
-
-                       var labels = getLabels(createScale(mockData, config));
-                       expect(labels[labels.length - 1]).toEqual('Jan 2');
-               });
-       });
-
        it('should use the isoWeekday option', function() {
                var mockData = {
                        labels: [