Initial commit

This commit is contained in:
Matthew Sanabria 2020-04-23 12:57:44 -04:00
commit cd5e05ffbf
23 changed files with 26743 additions and 0 deletions

View file

@ -0,0 +1,12 @@
const OutputListener = require('../lib/output-listener');
describe('output-listener', () => {
it('receives and exposes data', () => {
const listener = new OutputListener();
const listen = listener.listener;
listen(Buffer.from('foo'));
listen(Buffer.from('bar'));
listen(Buffer.from('baz'));
expect(listener.contents).toEqual('foobarbaz');
});
});