You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
454 B
18 lines
454 B
var Script = require('../src/script.js')
|
|
var assert = require('assert')
|
|
|
|
describe('Script', function() {
|
|
describe('constructor', function() {
|
|
it('works for a byte array', function() {
|
|
assert.ok(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({}) })
|
|
})
|
|
})
|
|
})
|
|
|