Skip to content

Commit e90b574

Browse files
committed
Upgrade dependencies
Fix new code style violations after upgrade to ESLint 4.
1 parent 57997a9 commit e90b574

File tree

7 files changed

+459
-486
lines changed

7 files changed

+459
-486
lines changed

build/gulp/compile-tasks.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ function getGitInfo () {
2525
promisifyWithoutError(git.branch),
2626
promisifyWithoutError(git.short)
2727
])
28-
.then(([branch, commit]) => {
29-
return {
30-
branch,
31-
commit
32-
}
33-
})
28+
.then(([branch, commit]) => {
29+
return {
30+
branch,
31+
commit
32+
}
33+
})
3434
}
3535

3636
function getLocalVersionQualifier (gitInfo) {

build/gulp/server-tasks.js

+13-13
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,19 @@ gulp.task('server:dev:_nodemon', ['dev:_rebuild:with-tests'], (done) => {
3737
tasks: ['dev:_rebuild:without-tests'],
3838
watch: [`${dirs.src}/*`]
3939
})
40-
.on('start', () => {
41-
if (!called) {
42-
called = true
43-
done()
44-
}
45-
})
46-
.on('restart', () => {
47-
setTimeout(() => {
48-
browserSync.reload({
49-
stream: false
50-
})
51-
}, 1000)
52-
})
40+
.on('start', () => {
41+
if (!called) {
42+
called = true
43+
done()
44+
}
45+
})
46+
.on('restart', () => {
47+
setTimeout(() => {
48+
browserSync.reload({
49+
stream: false
50+
})
51+
}, 1000)
52+
})
5353
})
5454

5555
gulp.task('server:dev', ['server:dev:_browser-sync'])

build/gulp/test-tasks.js

+17-17
Original file line numberDiff line numberDiff line change
@@ -61,22 +61,22 @@ gulp.task('test:unit', ['compile'], () => {
6161
util.compilePath(paths.js.main.server),
6262
`!${util.compilePath(dirs.serverSrc)}/model/dice-expression-parser.js`
6363
])
64-
.pipe(istanbul({
65-
includeUntested: true
66-
}))
67-
.pipe(istanbul.hookRequire())
68-
)
69-
.then(() => streamToPromise(runJasmine()))
70-
.then(() => streamToPromise(
71-
gulp.src([])
72-
.pipe(istanbul.writeReports({
73-
dir: dirs.coverage,
74-
reporters: ['lcov', 'text-summary']
64+
.pipe(istanbul({
65+
includeUntested: true
7566
}))
76-
.pipe(istanbul.enforceThresholds({
77-
thresholds: {
78-
global: 90
79-
}
80-
}))
81-
))
67+
.pipe(istanbul.hookRequire())
68+
)
69+
.then(() => streamToPromise(runJasmine()))
70+
.then(() => streamToPromise(
71+
gulp.src([])
72+
.pipe(istanbul.writeReports({
73+
dir: dirs.coverage,
74+
reporters: ['lcov', 'text-summary']
75+
}))
76+
.pipe(istanbul.enforceThresholds({
77+
thresholds: {
78+
global: 90
79+
}
80+
}))
81+
))
8282
})

features/client/support/home-page.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ class HomePage {
134134
randomNumberGenerator.signature = security.createSignature(randomNumberGenerator.content)
135135
return this._wait(until.elementsLocated(Locators.randomNumberGeneratorJson()))
136136
.then((element) => this.driver.executeScript(
137-
'document.getElementById(\'main-eval-randomNumberGeneratorJson\').value = \'' +
137+
'document.getElementById(\'main-eval-randomNumberGeneratorJson\').value = \'' +
138138
JSON.stringify(randomNumberGenerator) +
139139
'\';'
140140
))
@@ -158,7 +158,7 @@ class HomePage {
158158
this.driver.findElement(Locators.requestId()).getText(),
159159
this.driver.findElement(Locators.correlationId()).getText()
160160
])
161-
.then(([requestId, correlationId]) => requestId === correlationId ? true : null)
161+
.then(([requestId, correlationId]) => requestId === correlationId ? true : null)
162162
)
163163
return this._wait(untilResponseReceived)
164164
}

0 commit comments

Comments
 (0)