Skip to content

Write tests for @tinyhttp/req #140

@v1rtl

Description

@v1rtl
  • req.range
    • should return parsed ranges
    • should cap to the given size
    • should cap to the given size when open-ended
    • should have a .type
    • should accept any type
    • should return undefined if no range
    • with options
      • Should return combined ranges if combine set to true
  • req.is
    • should return the given MIME type when matching
    • should return false when not matching
    • should return false when Content-Type header is not present
    • Should lookup the MIME type with the extension given (e.g. req.is('json')
    • Should ignore charset
    • more coming soon...
  • more coming soon...

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions