frame-js / Frame

Frame is a flow based programming library for databases, APIs, utilities, objects, schemas and more!
MIT License
17 stars 2 forks source link

Bug: Stubbing init somehow ignores ObjectModel schema #3

Closed bugs181 closed 5 years ago

bugs181 commented 5 years ago

Will need to look into why the init function is not being used in the Schema correctly.

Setup:

const Console = Frame('Console')


Testing init:

> Console.init = true
< true
> Console.to(function(){})
Error: Blueprint 'Console' could not initialize.
TypeError: undefined is not a function (near '...blueprint.init.call...')

Testing in:

> Console.in = true
Error: Expecting "in" to be one of "function", got "boolean"