Skip to content

Commit 8566daa

Browse files
committed
[test] Use new API in tests
1 parent 65e91f9 commit 8566daa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/http-server-test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ var root = path.join(__dirname, 'fixtures', 'root');
1010
vows.describe('http-server').addBatch({
1111
'When http-server is listening on 8080': {
1212
topic: function () {
13-
new httpServer({
14-
port: 8080,
13+
var server = httpServer.createServer({
1514
root: root
16-
}).start();
17-
this.callback(null, httpServer);
15+
});
16+
server.listen(8080);
17+
this.callback(null, server);
1818
},
1919
'it should serve files from root directory': {
2020
topic: function () {

0 commit comments

Comments
 (0)