Frontend/25_01_07/mai/node_modules/select-hose/test/fixtures.js
szabomarton 7f4a15b9c3 asd
2025-01-28 11:38:27 +01:00

15 lines
293 B
JavaScript

var assert = require('assert');
function expectData(stream, expected, callback) {
var actual = '';
stream.on('data', function(chunk) {
actual += chunk;
});
stream.on('end', function() {
assert.equal(actual, expected);
callback();
});
}
exports.expectData = expectData;