Merge pull request #577 from strongloop/feature/array-as-type

Add unit-test for "array" type
This commit is contained in:
Miroslav Bajtoš 2015-05-05 17:42:59 +02:00
commit 67024ca4e0
1 changed files with 10 additions and 0 deletions

View File

@ -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);
});
});