Created
July 4, 2012 09:04
-
-
Save eladb/3046222 to your computer and use it in GitHub Desktop.
cantest - hello-test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Canvas = require('canvas'); | |
var hello = require('./hello'); | |
// tests the `hello` rendering function | |
module.exports = function() { | |
var canvas = new Canvas(120, 120); | |
var ctx = canvas.getContext('2d'); | |
// call `hello` to do it's magic | |
hello(ctx); | |
// test must return `Canvas` object | |
return canvas; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment