We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ba546d commit 25a6e5cCopy full SHA for 25a6e5c
test/integration.js
@@ -45,6 +45,18 @@ describe('routing', function() {
45
.expect('Content-Type', /image/)
46
.end(done);
47
});
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
60
61
62
describe('v2 avatar list requests', function() {
0 commit comments