diff --git a/test/canvas.test.js b/test/canvas.test.js index c379111..d6fbc9d 100644 --- a/test/canvas.test.js +++ b/test/canvas.test.js @@ -752,8 +752,9 @@ module.exports = { , ctx = canvas.getContext('2d'); ctx.font = 'normal 40px Impact'; - var te = ctx.measureText('Wahoo'); - assert.eql({ width: 111, height: 32 }, te); + assert.eql({ width: 111, height: 32 }, ctx.measureText('Wahoo')); + assert.eql(ctx.measureText(123), ctx.measureText('123')); + assert.eql(ctx.measureText(), ctx.measureText('undefined')); }, 'test Canvas#toBuffer()': function(assert){