diff options
Diffstat (limited to 'server/tests/helpers')
-rw-r--r-- | server/tests/helpers/core-utils.ts | 4 |
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' | |||
4 | import 'mocha' | 4 | import 'mocha' |
5 | import { snakeCase } from 'lodash' | 5 | import { snakeCase } from 'lodash' |
6 | import { objectConverter, parseBytes } from '../../helpers/core-utils' | 6 | import { objectConverter, parseBytes } from '../../helpers/core-utils' |
7 | import { isNumeric } from 'validator' | 7 | import validator from 'validator' |
8 | 8 | ||
9 | const expect = chai.expect | 9 | const 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 | } |