From 6798f4eb6c47ecce9e4d3b29fb3ca1c3ec6255b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Xalambr=C3=AD?= Date: Fri, 30 Jul 2021 18:36:45 -0500 Subject: [PATCH] Clone Response on MockStrategy authenticate call --- src/strategies/mock.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/strategies/mock.ts b/src/strategies/mock.ts index 4c09b03..106f796 100644 --- a/src/strategies/mock.ts +++ b/src/strategies/mock.ts @@ -7,6 +7,6 @@ export class MockStrategy implements Strategy { constructor(private response: Response) {} authenticate() { - return Promise.resolve(this.response); + return Promise.resolve(this.response.clone()); } }