aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/helpers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-01-07 14:56:07 +0100
committerChocobozzz <me@florianbigard.com>2020-01-07 15:56:07 +0100
commit7cde3b9c2e84ea20bb0aae4544598483cde9e22c (patch)
tree0860fd5a78127b2cf944b62eb88dc7e1ac3a3ddc /server/tests/helpers
parent60815a79219b13da2127ddbbf3bf6ab8853431c5 (diff)
downloadPeerTube-7cde3b9c2e84ea20bb0aae4544598483cde9e22c.tar.gz
PeerTube-7cde3b9c2e84ea20bb0aae4544598483cde9e22c.tar.zst
PeerTube-7cde3b9c2e84ea20bb0aae4544598483cde9e22c.zip
Update validator dependency
Diffstat (limited to 'server/tests/helpers')
-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 }