cleanup special 'definedProperties' field in Node

'definedProperties' seems like module-meta-data, which shouldn't be on a Node instance.
This commit is contained in:
Sebastian Thiel
2016-01-03 15:59:50 +01:00
parent 98d2f94a3a
commit 7a591bb4a8
2 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -26,7 +26,7 @@ describe('parser/javascript/node.js', function() {
expect(setup).toHaveBeenCalled();
});
it('sets up any defined properties', function() {
it('sets up any defined properties and removes \'definedProperties\' field', function() {
this.node.module = {
definedProperties: {
example: {
@@ -37,6 +37,7 @@ describe('parser/javascript/node.js', function() {
}
};
expect(this.node.example).toEqual('value');
expect(this.node.definedProperties).toBeUndefined();
});
});