Closed koresar closed 8 years ago
I think these should also be clearly defined in the stamp-specification. In the readme we should have a clear explanation of what each object is and what is tested for like the code below.
const isDescriptor = obj => isObject(obj);
const isStamp = obj => isFunction(obj) && isFunction(obj.compose) && isDescriptor(obj.compose);
const isComposable = obj => isDescriptor(obj) || isStamp(obj);
Looks good :+1:
There was a clarification PR about a month ago @unstoppablecarl. See https://github.com/stampit-org/stamp-specification/pull/60
If you feel it should be improved in any way - please suggest. Thanks :)
Nice! One more file in /test directory is okay I believe. If I were you I'd add a comment to this file saying something like "// this is used only for unit test debugging with iron-node
Otherwise people might want to delete it unintentionally ☺
I found it hard to follow the proposed file structure for the set on one-liner functions. This PR simplifies the project structure.
Also, this implements the stampit-org/stamp-specification#59 terminology.