Initial commit

This commit is contained in:
Patrick Marsceill
2017-03-09 13:16:08 -05:00
commit b7b0d0d7bf
4147 changed files with 401224 additions and 0 deletions

23
node_modules/write-file-stdout/test/index.js generated vendored Normal file
View File

@@ -0,0 +1,23 @@
var assert = require('assert');
var fs = require('fs');
var write = require('..');
describe('write-file-stdout', function () {
afterEach(function () {
if (fs.existsSync('fixture.txt')) fs.unlinkSync('fixture.txt');
});
it('should write to a file', function () {
write('fixture.txt', 'test');
assert.equal('test', fs.readFileSync('fixture.txt'));
});
it('should write to stdout', function (done) {
process.stdout.write = function (data) {
assert.equal('test', data);
done();
};
write('test');
});
});