1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
611 B

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();
});
});
});
};