mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-26 03:01:51 +08:00
test: use our own http-echo server (#10227)
This commit is contained in:
@ -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
|
||||
};
|
||||
|
Reference in New Issue
Block a user