morris.js/spec/support/placeholder.coffee
2012-10-25 07:51:13 +01:00

7 lines
162 B
CoffeeScript

beforeEach ->
placeholder = $('<div id="graph" style="width: 600px; height: 400px"></div>')
$('#test').append(placeholder)
afterEach ->
$('#test').empty()