Skip to content

Commit

Permalink
Add progressive jpeg test.
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Feb 15, 2016
1 parent 3a0b3e2 commit 2f16d75
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/processImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,19 @@ describe('express-processimage', function () {
.and('to resemble', pathModule.resolve(__dirname, '..', 'testdata', 'rotatedBulb.gif'))
});
});

it('should support creating a progressive jpeg', function () {
config.debug = true;
return expect('GET /turtle.jpg?resize=100,100&progressive', 'to yield response', {
body: expect.it('to have metadata satisfying', {
size: {
width: 100,
height: 100
},
Interlace: 'Line'
})
});
});
});

it('should process a big image when the compression middleware is present above express-processimage', function () {
Expand Down

0 comments on commit 2f16d75

Please sign in to comment.