summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-03-13 18:20:22 -0400
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-03-14 13:51:06 -0400
commita267799cd91e6d7e23395abd110f2348413cad58 (patch)
tree092182edd39534d2ddd2da0566ae5b2b0e55c8ed
parent7e1e7d59cd8f076b8ee07c354ed11724364cc9fa (diff)
Add some extra tests
-rw-r--r--test/test-object-property-accessor.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test-object-property-accessor.js b/test/test-object-property-accessor.js
index fb912b21..47d2e451 100644
--- a/test/test-object-property-accessor.js
+++ b/test/test-object-property-accessor.js
@@ -85,6 +85,7 @@ function testGetProperty2() {
[['value5', 1, 0], 'Invalid path: value5[1][0]'],
[['value5', 2, 'invalid'], 'Invalid path: value5[2].invalid'],
[['value5', 2, 0], 'Invalid path: value5[2][0]'],
+ [['value5', 2, 0, 'invalid'], 'Invalid path: value5[2][0]'],
[['value5', 2.5], 'Invalid index']
];
@@ -132,6 +133,7 @@ function testSetProperty2() {
[['value5', 1, 'invalid'], 'Invalid path: value5[1].invalid'],
[['value5', 2, 'invalid'], 'Invalid path: value5[2].invalid'],
[['value5', 2, 0], 'Invalid path: value5[2][0]'],
+ [['value5', 2, 0, 'invalid'], 'Invalid path: value5[2][0]'],
[['value5', 2.5], 'Invalid index']
];