Skip to content

Instantly share code, notes, and snippets.

@okdistribute
Created October 21, 2016 22:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save okdistribute/fdb50b58fe430c14a42d85d8690e07ce to your computer and use it in GitHub Desktop.
Save okdistribute/fdb50b58fe430c14a42d85d8690e07ce to your computer and use it in GitHub Desktop.
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