1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Implement unit tests for the network utility code

This should provide 100% coverage for the file.
This commit is contained in:
Tim van der Meij 2017-12-23 16:32:02 +01:00
parent 404cba878c
commit 957e2d420d
No known key found for this signature in database
GPG key ID: 8C3FD2925A5F2762
4 changed files with 181 additions and 1 deletions

View file

@ -19,7 +19,7 @@ import {
function validateRangeRequestCapabilities({ getResponseHeader, isHttp,
rangeChunkSize, disableRange, }) {
assert(rangeChunkSize > 0);
assert(rangeChunkSize > 0, 'Range chunk size must be larger than zero');
let returnValues = {
allowRangeRequests: false,
suggestedLength: undefined,