type-info
Version:
the run-time type infomation of object
27 lines (24 loc) • 510 B
text/coffeescript
chai = require 'chai'
sinon = require 'sinon'
sinonChai = require 'sinon-chai'
should = chai.should()
expect = chai.expect
assert = chai.assert
chai.use(sinonChai)
Type = require '../src'
allTypes = [
'Number'
'Int'
'Float'
'String'
'Object'
'Function'
'Boolean'
'Date'
'Array'
]
describe 'TypeInfo', ->
it 'should load all types', ->
types = Object.keys Type::_objects
allTypes.forEach (t)->
expect(types).be.include t