Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a0ce746

Browse files
committed
Fix eslint errors in layout service test
1 parent 596ff37 commit a0ce746

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

gulpfile.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ function lintTask() {
152152
'it',
153153
'jasmine',
154154
'moment',
155-
'spyOn'
155+
'spyOn',
156+
'xit'
156157
]
157158
};
158159

test/core.layoutService.tests.js

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Tests of the scale service
22
describe('Test the layout service', function() {
33
// Disable tests which need to be rewritten based on changes introduced by
4-
// the following changes: https://github.com/chartjs/Chart.js/pull/2346
5-
// using xit marks the test as pending: http://jasmine.github.io/2.0/introduction.html#section-Pending_Specs
4+
// the following changes: https://github.com/chartjs/Chart.js/pull/2346
5+
// using xit marks the test as pending: http://jasmine.github.io/2.0/introduction.html#section-Pending_Specs
66
xit('should fit a simple chart with 2 scales', function() {
77
var chart = window.acquireChart({
88
type: 'bar',
@@ -249,7 +249,9 @@ describe('Test the layout service', function() {
249249
type: 'bar',
250250
data: {
251251
datasets: [
252-
{ data: [10, 5, 0, 25, 78, -10] }
252+
{
253+
data: [10, 5, 0, 25, 78, -10]
254+
}
253255
],
254256
labels: ['tick1', 'tick2', 'tick3', 'tick4', 'tick5', 'tick6']
255257
},
@@ -294,7 +296,9 @@ describe('Test the layout service', function() {
294296
type: 'bar',
295297
data: {
296298
datasets: [
297-
{ data: [10, 5, 0, 25, 78, -10] }
299+
{
300+
data: [10, 5, 0, 25, 78, -10]
301+
}
298302
],
299303
labels: ['tick1', 'tick2', 'tick3', 'tick4', 'tick5', 'tick6']
300304
},
@@ -344,7 +348,9 @@ describe('Test the layout service', function() {
344348
type: 'bar',
345349
data: {
346350
datasets: [
347-
{ data: [10, 5, 0, 25, 78, -10] }
351+
{
352+
data: [10, 5, 0, 25, 78, -10]
353+
}
348354
],
349355
labels: ['tick1', 'tick2', 'tick3', 'tick4', 'tick5', 'tick6']
350356
},

0 commit comments

Comments
 (0)