From a0ce74643f3d6f7ad6f2f4a8ac4343d6526b91a8 Mon Sep 17 00:00:00 2001 From: Zach Panzarino Date: Tue, 18 Oct 2016 22:00:55 +0000 Subject: [PATCH] Fix eslint errors in layout service test --- gulpfile.js | 3 ++- test/core.layoutService.tests.js | 16 +++++++++++----- 2 files changed, 13 insertions(+), 6 deletions(-) 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'] },