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:
parent
60815a7921
commit
7cde3b9c2e
30 changed files with 108 additions and 111 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue