|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
293 bytes
|
| Line | |
|---|
| 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;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.