Skip to content

Commit d06f2d2

Browse files
Merge pull request #21 from Harduino/http-mock-fix
update http mock - fix error "Class HTTPMock incorrectly extends base class HTTP" on run "ionic serve"
2 parents d80c002 + 12371c2 commit d06f2d2

File tree

1 file changed

+8
-4
lines changed
  • src/@ionic-native-mocks/plugins/http

1 file changed

+8
-4
lines changed

src/@ionic-native-mocks/plugins/http/index.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,18 @@ export interface HTTPResponse {
55
* The status number of the response
66
*/
77
status: number;
8-
/**
9-
* The data that is in the response. This property usually exists when a promise returned by a request method resolves.
10-
*/
11-
data?: any;
128
/**
139
* The headers of the response
1410
*/
1511
headers: any;
12+
/**
13+
* The URL of the response. This property will be the final URL obtained after any redirects.
14+
*/
15+
url: string;
16+
/**
17+
* The data that is in the response. This property usually exists when a promise returned by a request method resolves.
18+
*/
19+
data?: any;
1620
/**
1721
* Error response from the server. This property usually exists when a promise returned by a request method rejects.
1822
*/

0 commit comments

Comments
 (0)