text: import path from 'path';
  import test from 'ava';
  import gulpUtil from 'gulp-util';
  import fn from './';
  
  test.cb(t => {
  	const stream = fn();
  
  	stream.once('data', file => {
  		t.is(file.contents.toString(), '<p>hello lipsum</p>');
  		t.end();
  	});
  
  	stream.write(new gulpUtil.File({
  		base: __dirname,
  		path: path.join(__dirname, 'file.ext'),
  		contents: new Buffer('<p>hello $lipsum()</p>')
  	}));
  
  	stream.end();
  });
  test.cb('multiple', t => {
  	const stream = fn();
  
  	stream.once('data', file => {
  		t.is(file.contents.toString(), '<p>hello lipsum and lipsum</p>');
  		t.end();
  	});
  
  	stream.write(new gulpUtil.File({
  		base: __dirname,
  		path: path.join(__dirname, 'file.ext'),
  		contents: new Buffer('<p>hello $lipsum() and $lipsum()</p>')
  	}));
  
  	stream.end();
  });
  