Skip to content

Commit 40f53ab

Browse files
committed
Update prettier
1 parent 765cca1 commit 40f53ab

28 files changed

+564
-411
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
"build": "grunt",
1919
"test": "grunt test",
2020
"report-coverage": "cat ./tests/coverage/lcov.info | codecov",
21-
"format": "prettier --single-quote --no-semi --write \"{src,tests,demo}/{,!(lib)/**}/*.{js,less,css}\"",
21+
"format": "prettier --write \"{src,tests,demo}/{,!(lib)/**}/*.{js,less,css}\"",
2222
"precommit": "lint-staged",
2323
"e2e": "npm start & cypress run",
2424
"cypress:open": "cypress open"
2525
},
2626
"lint-staged": {
2727
"{src,tests,demo}/{,!(lib)/**}/*.{js,less,css}": [
28-
"prettier --single-quote --no-semi --write",
28+
"prettier --write",
2929
"git add"
3030
]
3131
},
@@ -68,7 +68,7 @@
6868
"lint-staged": "^4.0.3",
6969
"mocha": "^3.1.2",
7070
"phantomjs": "^1.9.19",
71-
"prettier": "^1.10.2",
71+
"prettier": "^1.13.7",
7272
"recess": "~1.1.9",
7373
"sinon": "^1.17.2"
7474
},

tests/specs/accessibility-test.js

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,17 @@
66

77
beforeEach(module('test-helper'))
88

9-
beforeEach(
10-
inject(function(TestHelper, _RzSliderOptions_, _$rootScope_, _$timeout_) {
11-
helper = TestHelper
12-
RzSliderOptions = _RzSliderOptions_
13-
$rootScope = _$rootScope_
14-
$timeout = _$timeout_
15-
})
16-
)
9+
beforeEach(inject(function(
10+
TestHelper,
11+
_RzSliderOptions_,
12+
_$rootScope_,
13+
_$timeout_
14+
) {
15+
helper = TestHelper
16+
RzSliderOptions = _RzSliderOptions_
17+
$rootScope = _$rootScope_
18+
$timeout = _$timeout_
19+
}))
1720

1821
afterEach(function() {
1922
helper.clean()

tests/specs/custom-template-test.js

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,17 @@
66

77
beforeEach(module('test-helper'))
88

9-
beforeEach(
10-
inject(function(TestHelper, _RzSliderOptions_, _$rootScope_, _$timeout_) {
11-
helper = TestHelper
12-
RzSliderOptions = _RzSliderOptions_
13-
$rootScope = _$rootScope_
14-
$timeout = _$timeout_
15-
})
16-
)
9+
beforeEach(inject(function(
10+
TestHelper,
11+
_RzSliderOptions_,
12+
_$rootScope_,
13+
_$timeout_
14+
) {
15+
helper = TestHelper
16+
RzSliderOptions = _RzSliderOptions_
17+
$rootScope = _$rootScope_
18+
$timeout = _$timeout_
19+
}))
1720

1821
afterEach(function() {
1922
helper.clean()

tests/specs/helper-functions-test.js

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,17 @@
66

77
beforeEach(module('test-helper'))
88

9-
beforeEach(
10-
inject(function(TestHelper, _RzSliderOptions_, _$rootScope_, _$timeout_) {
11-
helper = TestHelper
12-
RzSliderOptions = _RzSliderOptions_
13-
$rootScope = _$rootScope_
14-
$timeout = _$timeout_
15-
})
16-
)
9+
beforeEach(inject(function(
10+
TestHelper,
11+
_RzSliderOptions_,
12+
_$rootScope_,
13+
_$timeout_
14+
) {
15+
helper = TestHelper
16+
RzSliderOptions = _RzSliderOptions_
17+
$rootScope = _$rootScope_
18+
$timeout = _$timeout_
19+
}))
1720

1821
afterEach(function() {
1922
helper.clean()

tests/specs/keyboard-controls/draggableRangeOnly-range-slider-test.js

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,17 @@
66

77
beforeEach(module('test-helper'))
88

9-
beforeEach(
10-
inject(function(TestHelper, _RzSliderOptions_, _$rootScope_, _$timeout_) {
11-
helper = TestHelper
12-
RzSliderOptions = _RzSliderOptions_
13-
$rootScope = _$rootScope_
14-
$timeout = _$timeout_
15-
})
16-
)
9+
beforeEach(inject(function(
10+
TestHelper,
11+
_RzSliderOptions_,
12+
_$rootScope_,
13+
_$timeout_
14+
) {
15+
helper = TestHelper
16+
RzSliderOptions = _RzSliderOptions_
17+
$rootScope = _$rootScope_
18+
$timeout = _$timeout_
19+
}))
1720

1821
afterEach(function() {
1922
helper.clean()
@@ -122,14 +125,17 @@
122125

123126
beforeEach(module('test-helper'))
124127

125-
beforeEach(
126-
inject(function(TestHelper, _RzSliderOptions_, _$rootScope_, _$timeout_) {
127-
helper = TestHelper
128-
RzSliderOptions = _RzSliderOptions_
129-
$rootScope = _$rootScope_
130-
$timeout = _$timeout_
131-
})
132-
)
128+
beforeEach(inject(function(
129+
TestHelper,
130+
_RzSliderOptions_,
131+
_$rootScope_,
132+
_$timeout_
133+
) {
134+
helper = TestHelper
135+
RzSliderOptions = _RzSliderOptions_
136+
$rootScope = _$rootScope_
137+
$timeout = _$timeout_
138+
}))
133139

134140
afterEach(function() {
135141
helper.clean()

tests/specs/keyboard-controls/range-slider-test.js

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,17 @@
66

77
beforeEach(module('test-helper'))
88

9-
beforeEach(
10-
inject(function(TestHelper, _RzSliderOptions_, _$rootScope_, _$timeout_) {
11-
helper = TestHelper
12-
RzSliderOptions = _RzSliderOptions_
13-
$rootScope = _$rootScope_
14-
$timeout = _$timeout_
15-
})
16-
)
9+
beforeEach(inject(function(
10+
TestHelper,
11+
_RzSliderOptions_,
12+
_$rootScope_,
13+
_$timeout_
14+
) {
15+
helper = TestHelper
16+
RzSliderOptions = _RzSliderOptions_
17+
$rootScope = _$rootScope_
18+
$timeout = _$timeout_
19+
}))
1720

1821
afterEach(function() {
1922
helper.clean()
@@ -154,14 +157,17 @@
154157

155158
beforeEach(module('test-helper'))
156159

157-
beforeEach(
158-
inject(function(TestHelper, _RzSliderOptions_, _$rootScope_, _$timeout_) {
159-
helper = TestHelper
160-
RzSliderOptions = _RzSliderOptions_
161-
$rootScope = _$rootScope_
162-
$timeout = _$timeout_
163-
})
164-
)
160+
beforeEach(inject(function(
161+
TestHelper,
162+
_RzSliderOptions_,
163+
_$rootScope_,
164+
_$timeout_
165+
) {
166+
helper = TestHelper
167+
RzSliderOptions = _RzSliderOptions_
168+
$rootScope = _$rootScope_
169+
$timeout = _$timeout_
170+
}))
165171

166172
afterEach(function() {
167173
helper.clean()

tests/specs/keyboard-controls/single-slider-test.js

Lines changed: 44 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,17 @@
66

77
beforeEach(module('test-helper'))
88

9-
beforeEach(
10-
inject(function(TestHelper, _RzSliderOptions_, _$rootScope_, _$timeout_) {
11-
helper = TestHelper
12-
RzSliderOptions = _RzSliderOptions_
13-
$rootScope = _$rootScope_
14-
$timeout = _$timeout_
15-
})
16-
)
9+
beforeEach(inject(function(
10+
TestHelper,
11+
_RzSliderOptions_,
12+
_$rootScope_,
13+
_$timeout_
14+
) {
15+
helper = TestHelper
16+
RzSliderOptions = _RzSliderOptions_
17+
$rootScope = _$rootScope_
18+
$timeout = _$timeout_
19+
}))
1720

1821
afterEach(function() {
1922
helper.clean()
@@ -146,14 +149,17 @@
146149

147150
beforeEach(module('test-helper'))
148151

149-
beforeEach(
150-
inject(function(TestHelper, _RzSliderOptions_, _$rootScope_, _$timeout_) {
151-
helper = TestHelper
152-
RzSliderOptions = _RzSliderOptions_
153-
$rootScope = _$rootScope_
154-
$timeout = _$timeout_
155-
})
156-
)
152+
beforeEach(inject(function(
153+
TestHelper,
154+
_RzSliderOptions_,
155+
_$rootScope_,
156+
_$timeout_
157+
) {
158+
helper = TestHelper
159+
RzSliderOptions = _RzSliderOptions_
160+
$rootScope = _$rootScope_
161+
$timeout = _$timeout_
162+
}))
157163

158164
afterEach(function() {
159165
helper.clean()
@@ -253,14 +259,17 @@
253259

254260
beforeEach(module('test-helper'))
255261

256-
beforeEach(
257-
inject(function(TestHelper, _RzSliderOptions_, _$rootScope_, _$timeout_) {
258-
helper = TestHelper
259-
RzSliderOptions = _RzSliderOptions_
260-
$rootScope = _$rootScope_
261-
$timeout = _$timeout_
262-
})
263-
)
262+
beforeEach(inject(function(
263+
TestHelper,
264+
_RzSliderOptions_,
265+
_$rootScope_,
266+
_$timeout_
267+
) {
268+
helper = TestHelper
269+
RzSliderOptions = _RzSliderOptions_
270+
$rootScope = _$rootScope_
271+
$timeout = _$timeout_
272+
}))
264273

265274
afterEach(function() {
266275
helper.clean()
@@ -394,14 +403,17 @@
394403

395404
beforeEach(module('test-helper'))
396405

397-
beforeEach(
398-
inject(function(TestHelper, _RzSliderOptions_, _$rootScope_, _$timeout_) {
399-
helper = TestHelper
400-
RzSliderOptions = _RzSliderOptions_
401-
$rootScope = _$rootScope_
402-
$timeout = _$timeout_
403-
})
404-
)
406+
beforeEach(inject(function(
407+
TestHelper,
408+
_RzSliderOptions_,
409+
_$rootScope_,
410+
_$timeout_
411+
) {
412+
helper = TestHelper
413+
RzSliderOptions = _RzSliderOptions_
414+
$rootScope = _$rootScope_
415+
$timeout = _$timeout_
416+
}))
405417

406418
afterEach(function() {
407419
helper.clean()

tests/specs/keyboard-controls/specific-test.js

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,17 @@
66

77
beforeEach(module('test-helper'))
88

9-
beforeEach(
10-
inject(function(TestHelper, _RzSliderOptions_, _$rootScope_, _$timeout_) {
11-
helper = TestHelper
12-
RzSliderOptions = _RzSliderOptions_
13-
$rootScope = _$rootScope_
14-
$timeout = _$timeout_
15-
})
16-
)
9+
beforeEach(inject(function(
10+
TestHelper,
11+
_RzSliderOptions_,
12+
_$rootScope_,
13+
_$timeout_
14+
) {
15+
helper = TestHelper
16+
RzSliderOptions = _RzSliderOptions_
17+
$rootScope = _$rootScope_
18+
$timeout = _$timeout_
19+
}))
1720

1821
afterEach(function() {
1922
helper.clean()
@@ -267,14 +270,17 @@
267270

268271
beforeEach(module('test-helper'))
269272

270-
beforeEach(
271-
inject(function(TestHelper, _RzSliderOptions_, _$rootScope_, _$timeout_) {
272-
helper = TestHelper
273-
RzSliderOptions = _RzSliderOptions_
274-
$rootScope = _$rootScope_
275-
$timeout = _$timeout_
276-
})
277-
)
273+
beforeEach(inject(function(
274+
TestHelper,
275+
_RzSliderOptions_,
276+
_$rootScope_,
277+
_$timeout_
278+
) {
279+
helper = TestHelper
280+
RzSliderOptions = _RzSliderOptions_
281+
$rootScope = _$rootScope_
282+
$timeout = _$timeout_
283+
}))
278284

279285
afterEach(function() {
280286
helper.clean()

0 commit comments

Comments
 (0)