1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 17:59:37 +02:00

Update validator dependency

This commit is contained in:
Chocobozzz 2020-01-07 14:56:07 +01:00
parent 60815a7921
commit 7cde3b9c2e
No known key found for this signature in database
GPG key ID: 583A612D890159BE
30 changed files with 108 additions and 111 deletions

View file

@ -4,7 +4,7 @@ import * as chai from 'chai'
import 'mocha'
import { snakeCase } from 'lodash'
import { objectConverter, parseBytes } from '../../helpers/core-utils'
import { isNumeric } from 'validator'
import validator from 'validator'
const expect = chai.expect
@ -53,7 +53,7 @@ describe('Parse Bytes', function () {
}
function valueConverter (v: any) {
if (isNumeric(v + '')) return parseInt('' + v, 10)
if (validator.isNumeric(v + '')) return parseInt('' + v, 10)
return v
}