Skip to content

Commit

Permalink
Clone Response on MockStrategy authenticate call
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiodxa authored Jul 30, 2021
1 parent 7f9e69b commit 6798f4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/strategies/mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ export class MockStrategy<User> implements Strategy<User> {
constructor(private response: Response) {}

authenticate() {
return Promise.resolve(this.response);
return Promise.resolve(this.response.clone());
}
}

0 comments on commit 6798f4e

Please sign in to comment.