From f24e7f924e688faac26f369613e5c72670ea4358 Mon Sep 17 00:00:00 2001 From: Alex Anderson <191496+alxndrsn@users.noreply.github.com> Date: Thu, 14 Nov 2024 07:58:22 +0300 Subject: [PATCH] test/http/endpoint: remove cryptic node14 reference (#1294) Introduced in #403 / 6e075a345b80041dae7c8156e10219fa0a606b21, this appears to be an outdated workaround for different behaviours in legacy node versions. --- test/unit/http/endpoint.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/unit/http/endpoint.js b/test/unit/http/endpoint.js index 2939caff2..6517b1ac2 100644 --- a/test/unit/http/endpoint.js +++ b/test/unit/http/endpoint.js @@ -476,9 +476,7 @@ describe('endpoints', () => { const responseTest = streamTest.toText((err, result) => { err.message.should.equal('ERR_EXPECTED'); trailers.should.eql({ Status: 'Error' }); - // eslint-disable-next-line no-multi-spaces - should.not.exist(result); // node v14 - (result === undefined).should.equal(true); // post node v14.?? + should(result).be.undefined(); done(); }); responseTest.addTrailers = function(t) { trailers = t; };