aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/helpers/core-utils.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/tests/helpers/core-utils.ts b/server/tests/helpers/core-utils.ts
index 2dbe8d635..31fc6dd7c 100644
--- a/server/tests/helpers/core-utils.ts
+++ b/server/tests/helpers/core-utils.ts
@@ -4,7 +4,7 @@ import * as chai from 'chai'
4import 'mocha' 4import 'mocha'
5import { snakeCase } from 'lodash' 5import { snakeCase } from 'lodash'
6import { objectConverter, parseBytes } from '../../helpers/core-utils' 6import { objectConverter, parseBytes } from '../../helpers/core-utils'
7import { isNumeric } from 'validator' 7import validator from 'validator'
8 8
9const expect = chai.expect 9const expect = chai.expect
10 10
@@ -53,7 +53,7 @@ describe('Parse Bytes', function () {
53 } 53 }
54 54
55 function valueConverter (v: any) { 55 function valueConverter (v: any) {
56 if (isNumeric(v + '')) return parseInt('' + v, 10) 56 if (validator.isNumeric(v + '')) return parseInt('' + v, 10)
57 57
58 return v 58 return v
59 } 59 }