From aa1dc47f75cd4743baacb7a51f537bf9938b2bdb Mon Sep 17 00:00:00 2001 From: Eugene Fidelin Date: Mon, 29 Apr 2024 18:58:30 +0200 Subject: [PATCH] More strict check for undefined --- lib/mockResponse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mockResponse.js b/lib/mockResponse.js index 26746bd..cf6e72a 100644 --- a/lib/mockResponse.js +++ b/lib/mockResponse.js @@ -167,7 +167,7 @@ function createResponse(options = {}) { _data = data; } } else { - _data += data || ''; + _data += data ?? ''; } };