Skip to content

Instantly share code, notes, and snippets.

@neumino
Created September 10, 2014 17:54
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 neumino/664974b92bb7b80d5ca1 to your computer and use it in GitHub Desktop.
Save neumino/664974b92bb7b80d5ca1 to your computer and use it in GitHub Desktop.
var config = require(__dirname+'/config.js');
var thinky = require(__dirname+'/lib/thinky.js')(config);
var r = thinky.r;
var Errors = thinky.Errors;
var util = require(__dirname+'/test/util.js');
var assert = require('assert');
thinky.r.dbCreate("foo").run().then(function(result) {
assert.equal(result.created, 1)
return thinky.r.dbDrop("foo").run()
}).then(function(result) {
assert.equal(result.dropped, 1)
console.log('done')
}).error(console.log)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment