]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commit
add parseBytes utility function and tests (#1239)
authorBRAINS YUM <43896676+McFlat@users.noreply.github.com>
Sat, 13 Oct 2018 06:43:55 +0000 (01:43 -0500)
committerChocobozzz <me@florianbigard.com>
Sat, 13 Oct 2018 06:43:55 +0000 (08:43 +0200)
commit0e5ff97f6fdf9a4cebe5a15f5a390380465803ad
treee3f69adb2b8a910ef750b44972ea59944aa9ca7c
parent6e5a785b20230ff5457632361a893d814b53c95e
add parseBytes utility function and tests (#1239)

* add parseBytes utility function and tests
make it parse TB MB
fix parseBytes; * 1024
test bytes too, and make parseByte to parse quotas
add test in travis.sh in misc

* fix parseBytes and test to pass linting
scripts/travis.sh
server/helpers/core-utils.ts
server/initializers/constants.ts
server/tests/helpers/core-utils.ts [new file with mode: 0644]
server/tests/helpers/index.ts [new file with mode: 0644]