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:
parent
404cba878c
commit
957e2d420d
4 changed files with 181 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue