3 module.exports = function (t, a) {
4 var obj = { foo: { bar: { lorem: 12 } } };
5 a(t(obj), obj, "No props");
6 a(t(obj, 'foo'), obj.foo, "One");
7 a(t(obj, 'raz'), undefined, "One: Fail");
8 a(t(obj, 'foo', 'bar'), obj.foo.bar, "Two");
9 a(t(obj, 'dsd', 'raz'), undefined, "Two: Fail #1");
10 a(t(obj, 'foo', 'raz'), undefined, "Two: Fail #2");
11 a(t(obj, 'foo', 'bar', 'lorem'), obj.foo.bar.lorem, "Three");
12 a(t(obj, 'dsd', 'raz', 'fef'), undefined, "Three: Fail #1");
13 a(t(obj, 'foo', 'raz', 'asdf'), undefined, "Three: Fail #2");
14 a(t(obj, 'foo', 'bar', 'asd'), undefined, "Three: Fail #3");