]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/helpers/core-utils.ts
Fix hook test
[github/Chocobozzz/PeerTube.git] / server / tests / helpers / core-utils.ts
index e604cf7e325b1581cdef4bcc94d439d9be468709..c028b316d9695512273705d92ad3a15afa9721ee 100644 (file)
@@ -1,12 +1,10 @@
-/* tslint:disable:no-unused-expression */
+/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
 
 import * as chai from 'chai'
 import 'mocha'
-import { snakeCase, isNumber } from 'lodash'
-import {
-  parseBytes, objectConverter
-} from '../../helpers/core-utils'
-import { isNumeric } from 'validator'
+import { snakeCase } from 'lodash'
+import { objectConverter, parseBytes } from '../../helpers/core-utils'
+import validator from 'validator'
 
 const expect = chai.expect
 
@@ -55,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
     }