Merge pull request #577 from strongloop/feature/array-as-type
Add unit-test for "array" type
This commit is contained in:
commit
67024ca4e0
|
@ -390,5 +390,15 @@ describe('ModelDefinition class', function () {
|
|||
done();
|
||||
});
|
||||
});
|
||||
|
||||
it('should support "array" type shortcut', function() {
|
||||
var Model = memory.createModel('TwoArrays', {
|
||||
regular: Array,
|
||||
sugar: 'array'
|
||||
});
|
||||
|
||||
var props = Model.definition.properties;
|
||||
props.regular.type.should.equal(props.sugar.type);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue