Skip to content

Commit bc2e15e

Browse files
author
Amoki
committed
fix /status test
1 parent 38a019a commit bc2e15e

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

test/index.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,15 @@ describe('GET /status', function() {
7777
if(err) {
7878
throw err;
7979
}
80-
res.body.should.have.property('status', 'ok');
81-
res.body.should.have.property('stats');
80+
try {
81+
res.body.should.have.property('status', 'ok');
82+
res.body.should.have.property('pending');
83+
res.body.should.have.property('processing');
84+
res.body.should.have.property('total');
85+
}
86+
catch(err) {
87+
return done(err);
88+
}
8289
server.queue.remove(done);
8390
});
8491
});

0 commit comments

Comments
 (0)