source: frontend/node_modules/select-hose/test/fixtures.js

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 
1var assert = require('assert');
2
3function 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}
14exports.expectData = expectData;
Note: See TracBrowser for help on using the repository browser.