diff options
author | Chocobozzz <me@florianbigard.com> | 2020-01-07 14:56:07 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-01-07 15:56:07 +0100 |
commit | 7cde3b9c2e84ea20bb0aae4544598483cde9e22c (patch) | |
tree | 0860fd5a78127b2cf944b62eb88dc7e1ac3a3ddc /server/tests | |
parent | 60815a79219b13da2127ddbbf3bf6ab8853431c5 (diff) | |
download | PeerTube-7cde3b9c2e84ea20bb0aae4544598483cde9e22c.tar.gz PeerTube-7cde3b9c2e84ea20bb0aae4544598483cde9e22c.tar.zst PeerTube-7cde3b9c2e84ea20bb0aae4544598483cde9e22c.zip |
Update validator dependency
Diffstat (limited to 'server/tests')
-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 | } |