Skip to content

Instantly share code, notes, and snippets.

@neojski
Created April 4, 2013 09:59
Show Gist options
  • Save neojski/5309210 to your computer and use it in GitHub Desktop.
Save neojski/5309210 to your computer and use it in GitHub Desktop.
asyncTest("xxx", function() {
initTestDB(this.name, function(err, db) {
db.put({_id: "foo/bar", test: "test"}, function(err, res) {
db.get("foo", function(err, res) {
console.log(res);
db.get("foo/bar", function(err, res){
console.log(res);
readBlob(res, function(data) {
console.log("test", data);
start();
});
});
});
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment