autocode-cli
Version:
code automation for every language, framework and platform
18 lines (16 loc) • 545 B
text/coffeescript
autocode = require '../../../src/autocode'
describe 'autocode', () ->
describe 'validate', () ->
describe 'description', () ->
it 'should be optional', () ->
(-> new autocode {})
.should.not.throw "'description' is required."
it 'should be a string', () ->
# object description
config = {
name: 'test'
version: '1.0.0'
description: {}
}
(-> new autocode config)
.should.throw "`description` must be a `string`, not a `object`."