From: Zach Panzarino Date: Tue, 18 Oct 2016 22:00:55 +0000 (+0000) Subject: Fix eslint errors in layout service test X-Git-Tag: v2.4.0~1^2~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a0ce74643f3d6f7ad6f2f4a8ac4343d6526b91a8;p=thirdparty%2FChart.js.git Fix eslint errors in layout service test --- diff --git a/gulpfile.js b/gulpfile.js index 530ae2101..1ce312d90 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -152,7 +152,8 @@ function lintTask() { 'it', 'jasmine', 'moment', - 'spyOn' + 'spyOn', + 'xit' ] }; diff --git a/test/core.layoutService.tests.js b/test/core.layoutService.tests.js index fcc2b7dcb..951ea234e 100644 --- a/test/core.layoutService.tests.js +++ b/test/core.layoutService.tests.js @@ -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'] },