Handle persisting objects with circular refs in context

This commit is contained in:
Nick O'Leary
2018-08-15 10:19:37 +01:00
parent 36e3bfffb4
commit ef8b936069
2 changed files with 33 additions and 3 deletions

View File

@@ -46,9 +46,12 @@ describe('localfilesystem',function() {
it('should store property',function(done) {
context.get("nodeX","foo",function(err, value){
if (err) { return done(err); }
should.not.exist(value);
context.set("nodeX","foo","test",function(err){
if (err) { return done(err); }
context.get("nodeX","foo",function(err, value){
if (err) { return done(err); }
value.should.be.equal("test");
done();
});