Skip to content

Commit

Permalink
Added to "test"
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregory Thompson committed Jul 5, 2013
1 parent da4ce20 commit c72342f
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions flatree.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,23 @@ mongoose.connect("mongodb://localhost/generic", function(){
console.log("about to find");
node_operations.fullNodeData(",directory,", function(data){
console.log("data = %j", data);
node_operations.deleteNode(",directory,#arr,", function(){
node_operations.updateNode(",directory,", null, [], [], {i: "feel", great: "now"}, function(){
node_operations.findNode(",directory,",
function(node){
console.log("node = %j", node);
console.log("success");
},
function(){
console.log("failed at update");
}
);
node_operations.findNode(",directory,", function(node){
console.log("node = %j", node);
node_operations.deleteNode(",directory,#arr,", function(){
node_operations.updateNode(",directory,", null, [], [], {i: "feel", great: "now"}, function(){
node_operations.findNode(",directory,",
function(node){
console.log("node = %j", node);
console.log("success");
},
function(){
console.log("failed at update");
}
);
});
});
});

});
},
function(err){
Expand Down

0 comments on commit c72342f

Please sign in to comment.