jasmine-jquery
jasmine-jquery copied to clipboard
Can I create multiple elements using sandbox()
Tried both
setFixtures(sandbox({class:'First'}, {class:'Second'}));
and
setFixtures(sandbox([{class:'First'}, {class:'Second'}]));
None worked. Is there a way to create some complex stuff using sandbox?
Not really, sandbox
will create single div and pass provided attributes to that div
as seen in code
jasmine.Fixtures.prototype.sandbox = function (attributes) {
var attributesToSet = attributes || {}
return $('<div id="sandbox" />').attr(attributesToSet)
}