Skip to content

Commit

Permalink
test/http/endpoint: remove cryptic node14 reference (#1294)
Browse files Browse the repository at this point in the history
Introduced in #403 / 6e075a3, this appears to be an outdated workaround for different behaviours in legacy node versions.
  • Loading branch information
alxndrsn authored Nov 14, 2024
1 parent 0c3ec3d commit f24e7f9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/unit/http/endpoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -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; };
Expand Down

0 comments on commit f24e7f9

Please sign in to comment.