Adding documentation and a few tweaks to node.js

This commit is contained in:
Jeff Avallone
2015-04-19 16:40:53 -04:00
parent 8796c1329c
commit 1ef8bd7500
3 changed files with 54 additions and 11 deletions
+1 -1
View File
@@ -310,7 +310,7 @@ describe('parser/javascript/node.js', function() {
it('creates a text element', function() {
this.node.renderLabeledBox('example label', this.content, { padding: 5 });
expect(this.node.container.text).toHaveBeenCalledWith(0, 0, 'example label');
expect(this.node.container.text).toHaveBeenCalledWith(0, 0, ['example label']);
});
it('sets the class on the text element', function() {