Expresso test returning 'Error: Response not completed' on navigation to a static file
I'm trying to set up a simple project using Node.js and Express with Expresso for testing. I'm using the express.static middleware to serve a static html file (index.html) located in my public directory. This is the code for app.js:
var express = require('express');
var app = express.createServer();
app.use(express.static(__dirname + '/public'));
I then wrote a simple test to check for the static file. This is the code for app.test.js:
When I run the test (using expresso or expresso -s) I get the following error:
app.test.js Navigate to root: TypeError: Object #
I'm obviously doing something silly, but I can't seem to figure out what it is. I thought it might be because my server is already started prior to the test, but it looks like Expresso handles that case. I've also tested a REST endpoint using json to see if it was the static file that was causing the problem but it's giving me the same error.
I'm using Node.js v0.6.6, Express v2.5.4, and Expresso v0.9.2. Thanks!