|
|
@ -7,11 +7,12 @@ describe('Script', function() { |
|
|
|
assert.ok(new Script([])) |
|
|
|
}) |
|
|
|
|
|
|
|
it('throws an error when input is not an array', function() { |
|
|
|
assert.throws(function(){ |
|
|
|
new Script({}) |
|
|
|
it('works when nothing is passed in', function() { |
|
|
|
assert.ok(new Script()) |
|
|
|
}) |
|
|
|
|
|
|
|
it('throws an error when input is not an array', function() { |
|
|
|
assert.throws(function(){ new Script({}) }) |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
}) |
|
|
|