orionsoft-react-scripts
Version:
Orionsoft Configuration and scripts for Create React App.
17 lines (9 loc) • 322 B
text/coffeescript
require './_prepare'
domConverter = mod 'domConverter'
describe "input types"
it "should work with objects", ->
domConverter.objectToDom {}
it "should work with arrays", ->
domConverter.objectToDom []
it "should not work with other types", ->
(-> domConverter.objectToDom 'a').should.throw Error