Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

how to run test.js #1

Open
munipratap opened this issue May 27, 2011 · 1 comment
Open

how to run test.js #1

munipratap opened this issue May 27, 2011 · 1 comment

Comments

@munipratap
Copy link

hi i installed the node and node-xmpp-client

for running the test.js, i did
$node test.js
$
but i did not get any output

after i tried like this
node> require.paths.unshift('.')
node> var test = require('test')
node> test.testClientInit()
in test clientinit
TypeError: Cannot call method 'equals' of undefined
at Object.testClientInit (/home/moto/nodejs/athoune-node-xmpp-client-9676369/test/test.js:11:7)
at [object Context]:1:6
at Interface. (repl.js:168:22)
at Interface.emit (events.js:64:17)
at Interface._onLine (readline.js:153:10)
at Interface._line (readline.js:408:8)
at Interface._ttyWrite (readline.js:585:14)
at ReadStream. (readline.js:73:12)
at ReadStream.emit (events.js:81:20)
at ReadStream._emitKey (tty_posix.js:307:10)

Error: ECONNREFUSED, Connection refused
node>

please tell me how to run the test functions and arguments need to pass to the test functions...

@athoune
Copy link
Owner

athoune commented Jul 5, 2011

First, fetch all dependencies
npm install .

Then build a conf file
vi test/conf.js

And now, you can launch test
node test/test.js

I don't understand why you get no output. At least, you should have errors.

kapilgoenka pushed a commit to kapilgoenka/node-xmpp-client that referenced this issue Feb 3, 2012
xmpp-client bug fixes and updates
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants