aswi2020vldc-gitlab/templetes/node_modules/select-hose/test/fixtures.js @ 9bb1e829
1 |
var assert = require('assert'); |
---|---|
2 |
|
3 |
function expectData(stream, expected, callback) { |
4 |
var actual = ''; |
5 |
|
6 |
stream.on('data', function(chunk) { |
7 |
actual += chunk; |
8 |
});
|
9 |
stream.on('end', function() { |
10 |
assert.equal(actual, expected); |
11 |
callback(); |
12 |
});
|
13 |
}
|
14 |
exports.expectData = expectData; |
- « Předchozí
- 1
- 2
- Další »