// Dependencies
var Enny = require("../lib");

// Initialize Enny in memory
var e = new Enny();

// Add two instances
var aIns = e.addInstance({ name: "A" })
  , bIns = e.addInstance({ name: "B" })
  ;

aIns.on("someEvent", {
    to: "B"
});

console.log(e.toObject());

@@ -248,16 +248,31 @@
 ole.log(
+JSON.stringify(
 e.toObje
@@ -275,11 +275,21 @@
 Object()
+, null, 4)
 );%0A

Stringify the result