test: use our own http-echo server (#10227)

This commit is contained in:
Igor Randjelovic
2023-03-01 22:11:06 +01:00
committed by GitHub
parent e613ecf819
commit d8efb7a826
6 changed files with 66 additions and 64 deletions

View File

@ -77,7 +77,7 @@ Passing an `Error` to the `done()` callback will cause the test to fail:
```typescript
export function test_getJSON(done) {
http.getJSON("https://httpbin.org/get").then(
http.getJSON("https://http-echo.nativescript.org/get").then(
(result) => { done(); }, // success
(error) => { done(error); }); // fail
};