Browse Source

Normalizing state.png in tests

v1.x
Tj Holowaychuk 14 years ago
parent
commit
bb66df0560
  1. 4
      test/server.js

4
test/server.js

@ -31,6 +31,10 @@ app.get('/', function(req, res){
});
app.post('/render', function(req, res, next){
// Normalize state.png as ./public/state.png
// no good way around this at the moment
req.body.fn = req.body.fn.replace("'state.png'", "'" + __dirname + "/public/state.png'");
// Do not try this at home :)
var fn = eval('(' + req.body.fn + ')')
, width = req.body.width

Loading…
Cancel
Save