Skip to content

Commit 25a6e5c

Browse files
committed
Added tests
1 parent 7ba546d commit 25a6e5c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/integration.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,18 @@ describe('routing', function() {
4545
.expect('Content-Type', /image/)
4646
.end(done);
4747
});
48+
49+
it('can manually compose an image with a custom size', function(done) {
50+
request.get('/avatars/face/eyes1/nose4/mouth11/bbb/50')
51+
.expect(200)
52+
.expect('Content-Type', /image/)
53+
.parse(parseImage).end(function(err, res) {
54+
im(res.body).size(function(_, size) {
55+
expect(size).to.eql({ height: 50, width: 50 });
56+
done();
57+
});
58+
});
59+
});
4860
});
4961

5062
describe('v2 avatar list requests', function() {

0 commit comments

Comments
 (0)