Created
October 21, 2016 22:09
-
-
Save okdistribute/fdb50b58fe430c14a42d85d8690e07ce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test('prep', function (t) { | |
rimraf.sync(path.join(fixtures, '.dat')) // for previous failed tests | |
var myDat = dat(fixtures, function (err, node) { | |
t.error(err, 'no error') | |
shareDat = node | |
shareDat.once('key', function (key) { | |
console.log('THIS ONE HAPPENS') | |
shareKey = key | |
t.end() | |
}) | |
shareDat.share(function (err, key) { | |
t.error(err, 'no share error') | |
testFolder(function () { | |
}) | |
}) | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment