From 3ffa47abf7e51ea523d457814a3a677f6214103d Mon Sep 17 00:00:00 2001 From: Eugene Fidelin Date: Mon, 29 Apr 2024 19:02:11 +0200 Subject: [PATCH] More strict check for undefined (#302) --- 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 ?? ''; } };