forwardemail / forwardemail/supertest

is there a way to test binary data ?

Open
#442 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
14.4k
Forks
782
PR merge metrics
No merged PRs in 30d

Description

superagent has responseType, however it seems that method is not exposed by supertest ?
```
request(app).get('/sub/asset1.a').responseType('blob')
```
yields
```
responseType is not a function
```

Contributor guide

Open the contributing guide

Research direction

Start at the SuperTest request API around request(app).get(...) and compare its exposed methods with SuperAgent's responseType. Done means binary data can be requested through the documented API and a test covers the behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
backend, testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.