Skip to content

Commit

Permalink
simplest test for circular links
Browse files Browse the repository at this point in the history
  • Loading branch information
Дудкин Артем Валентинович authored and Дудкин Артем Валентинович committed Oct 10, 2017
1 parent 42c9035 commit de88ae1
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/get.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,3 +374,20 @@ describe('real life example', function(){
assert.deepEqual(actual, expected);
});
});

/*
describe('simple circular link', function(){
const x = {
"a": {
"x":1,
"y":2,
}
};
x.a.z = x.a;
it('"a x" of x -> 1',function(){
let actual = get(x, "x a");
assert.deepEqual(actual, 1);
});
});
*/

0 comments on commit de88ae1

Please sign in to comment.