Browse Source

Fix server tests in cases when jpeg isn't available

v1.x
Zach Bjornson 9 years ago
parent
commit
9083839667
  1. 2
      test/server.js

2
test/server.js

@ -84,6 +84,8 @@ app.post('/pdf', function(req, res, next){
});
app.post('/jpeg', function(req, res, next){
// Send nothing if jpeg isn't available.
if (!Canvas.jpegVersion) { return res.send({}).end(); }
var fn = testFn(req)
, canvas = createCanvas(req)
, ctx = canvas.getContext('2d');

Loading…
Cancel
Save