|
|
@@ -84,17 +84,6 @@ describe('Path', function () {
|
|
|
expect(Path.get(obj, 'a.c')).toBeUndefined()
|
|
|
})
|
|
|
|
|
|
- it('get from Array', function () {
|
|
|
- var path = ['a','b','0']
|
|
|
- var obj = {
|
|
|
- a: {
|
|
|
- b: [123]
|
|
|
- }
|
|
|
- }
|
|
|
- expect(Path.getFromArray(obj, path)).toBe(123)
|
|
|
- expect(Path.getFromArray(obj, ['a','c','d'])).toBeUndefined()
|
|
|
- })
|
|
|
-
|
|
|
it('get from observer delimited path', function () {
|
|
|
var delim = Observer.pathDelimiter
|
|
|
var path = ['a','b','0'].join(delim)
|