andreachild commented on code in PR #3242:
URL: https://github.com/apache/tinkerpop/pull/3242#discussion_r2446030429
##########
gremlin-javascript/src/main/javascript/gremlin-javascript/test/unit/structure-types-test.js:
##########
@@ -56,6 +85,18 @@ describe('VertexProperty', () => {
});
});
});
+
+ describe('properties', () => {
+ it('should default to empty array when not provided', () => {
+ const vp = new VertexProperty(24, 'name', 'marko');
+ assert.deepStrictEqual(vp.properties, []);
+ });
+
+ it('should default to empty array when null', () => {
Review Comment:
```suggestion
it('should default to empty array when undefined', () => {
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]