Skip to content

Commit

Permalink
Merge pull request #21 from Harduino/http-mock-fix
Browse files Browse the repository at this point in the history
update http mock - fix error "Class HTTPMock incorrectly extends base class HTTP" on run "ionic serve"
  • Loading branch information
chrisgriffith authored May 15, 2018
2 parents d80c002 + 12371c2 commit d06f2d2
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/@ionic-native-mocks/plugins/http/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,18 @@ export interface HTTPResponse {
* The status number of the response
*/
status: number;
/**
* The data that is in the response. This property usually exists when a promise returned by a request method resolves.
*/
data?: any;
/**
* The headers of the response
*/
headers: any;
/**
* The URL of the response. This property will be the final URL obtained after any redirects.
*/
url: string;
/**
* The data that is in the response. This property usually exists when a promise returned by a request method resolves.
*/
data?: any;
/**
* Error response from the server. This property usually exists when a promise returned by a request method rejects.
*/
Expand Down

0 comments on commit d06f2d2

Please sign in to comment.