Skip to content

Commit

Permalink
Fix test/don't remove source.end
Browse files Browse the repository at this point in the history
  • Loading branch information
mischnic committed Dec 9, 2020
1 parent ca73d93 commit d013915
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/node.js
Expand Up @@ -199,7 +199,8 @@ class Node {
}
fixed[name] = {
inputId,
start: value.start
start: value.start,
end: value.end
}
} else {
fixed[name] = value
Expand Down
1 change: 1 addition & 0 deletions test/node.test.ts
Expand Up @@ -292,6 +292,7 @@ it('toJSON() converts custom properties', () => {
nodes: [],
raws: {},
_hack: 'hack',
inputs: [],
_cache: [1]
})
})
Expand Down

0 comments on commit d013915

Please sign in to comment.