refactor access seq parsing

This commit is contained in:
harttle
2017-08-03 13:46:00 +08:00
parent 3dc37bf980
commit a2a076d038
2 changed files with 40 additions and 38 deletions
+4
View File
@@ -42,6 +42,10 @@ describe('scope', function () {
expect(scope.propertyAccessSeq('bar["foo"].zoo'))
.to.deep.equal(['bar', 'foo', 'zoo'])
})
it('should handle nested access 4', function () {
expect(scope.propertyAccessSeq('foo[0].bar'))
.to.deep.equal(['foo', '0', 'bar'])
})
})
describe('#get()', function () {