Comments (4)
hmm can you post the stack trace?
from tobi.
Error: Debug
at Object.<anonymous> (/Users/vik/local_repository/myapp/test/app.test.js:16:10)
at Module._compile (module.js:404:26)
at Object..js (module.js:410:10)
at Module.load (module.js:336:31)
at Function._load (module.js:297:12)
at Array.0 (module.js:423:10)
at EventEmitter._tickCallback (node.js:126:26)
Caught exception: TypeError: Object #<Object> has no method 'listen'
from tobi.
did you solve your problem?
i get the same message using tobi (same code as above). weird thing i also get this using zombiejs or mocha testing tools.
i'm using node 0.6.2 on ubuntu 10.04 and got the modules via npm install
from tobi.
probably you do not export your app from your server
app = require('../app'),
you should check what app is, my guess is that it's {}
what can you do? simply write in your ../app the following:
var app = module.exports = express.createServer();
to get your app exported
from tobi.
Related Issues (20)
- browser.click('a') doesn't request a url but bind a function with a click event.
- browser.post json object
- testing JSON responses HOT 2
- How do I use with Zappa? HOT 1
- cookies on header HOT 1
- Simple tobi usage results in exception
- Installing tobi, errors node v0.6.1
- Tobi is broken in node 0.6.5 (at least for me) HOT 8
- Sharing cookies between subdomains
- CSRF_COOKIE header used by .submit() doesn't seem to match cookieJar
- Tobi incompatible with should-style Chai HOT 2
- tobi makes 500 error for later calls
- Always attach `body` to response object? HOT 1
- Exporting the cookie-jar as its own module HOT 2
- Err: The "sys" module is now called "util" HOT 1
- Redirect to location start with '//' cause 404 error.
- Parsing cookie's path with uppercase 'Path' cause exception
- relative path cannot be parsed
- Compatibility with node 0.8?
- Require ('app') for express 3.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.