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 772c080 commit bfbbd07Copy full SHA for bfbbd07
test/integration.js
@@ -72,4 +72,28 @@ describe('routing', function() {
72
});
73
74
75
+
76
+ describe('v2 avatar random requests', function() {
77
78
+ it('can randomly generate a new avatar', function(done) {
79
+ request.get('/avatars/random')
80
+ .expect(200)
81
+ .expect('Content-Type', /image/)
82
+ .end(done);
83
+ });
84
85
+ it('can randomly generate a new avatar with a custom size', function(done) {
86
+ request.get('/avatars/50/random')
87
88
89
+ .parse(parseImage).end(function(err, res) {
90
+ im(res.body).size(function(_, size) {
91
+ expect(size).to.eql({ height: 50, width: 50 });
92
+ done();
93
94
95
96
97
98
99
0 commit comments