use 160px as default - 180 results in irregular resized pixels (22,5px)

This commit is contained in:
jomo
2014-11-03 02:12:58 +01:00
parent c03c3ed1cc
commit a6c74c9831
4 changed files with 18 additions and 18 deletions

View File

@@ -27,13 +27,13 @@ describe('Avatar Serving', function(){
});
describe('Avatar', function(){
it("should be downloaded", function(done) {
helpers.get_avatar(uuid, false, 180, function(err, status, image) {
helpers.get_avatar(uuid, false, 160, function(err, status, image) {
assert.equal(status, 2);
done();
});
});
it("should be local", function(done) {
helpers.get_avatar(uuid, false, 180, function(err, status, image) {
helpers.get_avatar(uuid, false, 160, function(err, status, image) {
assert.equal(status, 1);
done();
});
@@ -44,7 +44,7 @@ describe('Avatar Serving', function(){
cache.get_redis().flushall();
});
it("should be rate limited", function(done) {
helpers.get_avatar(uuid, false, 180, function(err, status, image) {
helpers.get_avatar(uuid, false, 160, function(err, status, image) {
assert.equal(err, null);
done();
});