parent
8583829d43
commit
4a0c4d0a8a
@ -0,0 +1,24 @@
|
||||
var sys = require('sys'),
|
||||
colors = require('colors'),
|
||||
xmpp = require('node-xmpp'),
|
||||
Client = require('../lib/xmpp-client').Client,
|
||||
conf = require('./conf').conf;
|
||||
|
||||
exports.testIq = function(test) {
|
||||
test.expect(1);
|
||||
var a = new Client(conf.a, function() {
|
||||
//sys.debug(this.jid.toString().blue);
|
||||
var b = new Client(conf.b, function() {
|
||||
//sys.debug(this.jid.toString().blue);
|
||||
a.getVersion(b.jid, function(version) {
|
||||
sys.debug(version.toString().yellow);
|
||||
test.ok(true, 'version');
|
||||
test.done();
|
||||
},
|
||||
function(iq) {
|
||||
sys.error(iq.toString().red);
|
||||
test.done();
|
||||
});
|
||||
});
|
||||
});
|
||||
};
|
Loading…
Reference in new issue