Skip to content

Add test and improve docs for progress.totalΒ #924

@sindresorhus

Description

@sindresorhus

The docs says:

If it's not possible to retrieve the body size (can happen when streaming), total will be null. - https://github.com/sindresorhus/got#ondownloadprogress-progress

But we have no tests to prove this.

  • Add test
  • Be more specific than "can happen when streaming". In what exact scenarios can it happen?
  • Make it undefined instead of null

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions