question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Write tests for `@tinyhttp/jsonp`

See original GitHub issue

Express tests: https://github.com/expressjs/express/blob/master/test/res.jsonp.js

Should be put in __tests__/modules/jsonp.ts

No need to write as many tests as in Express, if it hits 100% coverage, it’s enough

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
talentlessguycommented, Oct 7, 2020

@shubhi23994 it’s fine that 23 is unreachable, the coverage doesn’t have to be 100%

and yes I’m taking a look now

1reaction
talentlessguycommented, Oct 5, 2020

@shubhi23994 I think I just fixed it, check again please

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I test a JSONP HTTP request in Angular?
According to an Angular developer this is a bug. Here's a workaround for now. example.service.spec.ts import { TestBed, inject } from ...
Read more >
brianleroux/tiny-json-http: Minimalist HTTP client for ... - GitHub
tiny -json-http. Minimalist HTTP client for GET , POST , PUT , PATCH and DELETE JSON payloads. Zero dependencies: perfect for AWS Lambda;...
Read more >
Getting Start With Unit Test for an HTTP REST Application with ...
Unit testing is the smallest test that focuses on checking that a single part of the application operates correctly. It breaks an application ......
Read more >
Testing Http • Angular - codecraft.tv
We can test code that makes HTTP requests by using a MockBackend. This requires that we configure our TestBed so that the Jsonp...
Read more >
Unit testing of HTTP server in Deno | The JS runtimes - Medium
In this article, we'll learn how to do unit testing of a small web app, HTTP echo server, in Deno. We'll learn how...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found