From f67e45602afb52fb1cba3982db64205ef458de7c Mon Sep 17 00:00:00 2001 From: calidion Date: Tue, 19 Apr 2016 00:39:40 +0800 Subject: [PATCH] update --- lib/incoming.js | 3 +-- test/incoming.js | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/incoming.js b/lib/incoming.js index e881a7c..556e746 100644 --- a/lib/incoming.js +++ b/lib/incoming.js @@ -34,7 +34,7 @@ makeEventCall(eventEmitter, eventOns, eventTypes); module.exports = { on: ons, - onXML: function(xml, res, cb) { + onXML: function(xml) { var self = this; x2j.parseString(xml, { explicitArray: false, @@ -49,7 +49,6 @@ module.exports = { } self.parse.apply(self, args); }); - }, parse: function() { switch (arguments[0].MsgType) { diff --git a/test/incoming.js b/test/incoming.js index 26c7c07..1a97a6e 100644 --- a/test/incoming.js +++ b/test/incoming.js @@ -336,7 +336,6 @@ describe('node-weixin-message', function() { function http(req, res) { var messages = nodeWeixinMessage.messages; - function A(message, res, cb, more) { assert.equal(res, r2); assert.equal(more, 'and more'); @@ -356,5 +355,4 @@ describe('node-weixin-message', function() { } http(r1, r2); }); - });