]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fix eslint errors in layout service test
authorZach Panzarino <zachary@panzarino.com>
Tue, 18 Oct 2016 22:00:55 +0000 (22:00 +0000)
committerZach Panzarino <zachary@panzarino.com>
Tue, 18 Oct 2016 22:00:55 +0000 (22:00 +0000)
gulpfile.js
test/core.layoutService.tests.js

index 530ae2101927be87ac0684eda28e63bbc4396fc6..1ce312d90988d52dbcddab7eee13d1779e546df0 100644 (file)
@@ -152,7 +152,8 @@ function lintTask() {
       'it',
       'jasmine',
       'moment',
-      'spyOn'
+      'spyOn',
+      'xit'
     ]
   };
 
index fcc2b7dcb5217f7c6607689916ed23048919426f..951ea234e70e4e86eb670e04bf32b70f7563f85d 100644 (file)
@@ -1,8 +1,8 @@
 // Tests of the scale service
 describe('Test the layout service', function() {
        // Disable tests which need to be rewritten based on changes introduced by
-       // the following changes: https://github.com/chartjs/Chart.js/pull/2346
-       // using xit marks the test as pending: http://jasmine.github.io/2.0/introduction.html#section-Pending_Specs
+       // the following changes: https://github.com/chartjs/Chart.js/pull/2346
+       // using xit marks the test as pending: http://jasmine.github.io/2.0/introduction.html#section-Pending_Specs
        xit('should fit a simple chart with 2 scales', function() {
                var chart = window.acquireChart({
                        type: 'bar',
@@ -249,7 +249,9 @@ describe('Test the layout service', function() {
                                type: 'bar',
                                data: {
                                        datasets: [
-                                               { data: [10, 5, 0, 25, 78, -10] }
+                                               {
+                                                       data: [10, 5, 0, 25, 78, -10]
+                                               }
                                        ],
                                        labels: ['tick1', 'tick2', 'tick3', 'tick4', 'tick5', 'tick6']
                                },
@@ -294,7 +296,9 @@ describe('Test the layout service', function() {
                                type: 'bar',
                                data: {
                                        datasets: [
-                                               { data: [10, 5, 0, 25, 78, -10] }
+                                               {
+                                                       data: [10, 5, 0, 25, 78, -10]
+                                               }
                                        ],
                                        labels: ['tick1', 'tick2', 'tick3', 'tick4', 'tick5', 'tick6']
                                },
@@ -344,7 +348,9 @@ describe('Test the layout service', function() {
                                type: 'bar',
                                data: {
                                        datasets: [
-                                               { data: [10, 5, 0, 25, 78, -10] }
+                                               {
+                                                       data: [10, 5, 0, 25, 78, -10]
+                                               }
                                        ],
                                        labels: ['tick1', 'tick2', 'tick3', 'tick4', 'tick5', 'tick6']
                                },