[Pkg-javascript-commits] [ltx] 336/469: whitespace
Jonas Smedegaard
dr at jones.dk
Wed Aug 31 13:03:23 UTC 2016
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository ltx.
commit e32a73fa7c0222cca7ea4c5ca396798ccabd57db
Author: Thom Nichols <tmnichols at gmail.com>
Date: Thu Apr 3 12:14:56 2014 -0400
whitespace
---
lib/element.js | 2 +-
test/element-test.js | 16 ++++++++--------
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/lib/element.js b/lib/element.js
index 3c8161d..0975909 100644
--- a/lib/element.js
+++ b/lib/element.js
@@ -183,7 +183,7 @@ Element.prototype.getChildText = function(name, xmlns) {
* processing instructions, etc.
*/
Element.prototype.getChildElements = function() {
- return this.getChildrenByFilter( function(child) {
+ return this.getChildrenByFilter(function(child) {
return child instanceof Element
})
}
diff --git a/test/element-test.js b/test/element-test.js
index 5320f0c..e904ac8 100644
--- a/test/element-test.js
+++ b/test/element-test.js
@@ -157,11 +157,11 @@ vows.describe('ltx').addBatch({
.root()
var children = el.children
- assert.equal( children.length, 4 )
- assert.equal( children[0].name, 'b')
- assert.equal( children[1], 'foo')
- assert.equal( children[2].name, 'c')
- assert.equal( children[3], 'bar')
+ assert.equal(children.length, 4)
+ assert.equal(children[0].name, 'b')
+ assert.equal(children[1], 'foo')
+ assert.equal(children[2].name, 'c')
+ assert.equal(children[3], 'bar')
},
'getChildElements': function() {
var el = new ltx.Element('a')
@@ -173,9 +173,9 @@ vows.describe('ltx').addBatch({
.root()
var children = el.getChildElements()
- assert.equal( children.length, 2 )
- assert.equal( children[0].name, 'b')
- assert.equal( children[1].name, 'c')
+ assert.equal(children.length, 2)
+ assert.equal(children[0].name, 'b')
+ assert.equal(children[1].name, 'c')
}
},
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/ltx.git
More information about the Pkg-javascript-commits
mailing list