Skip to content

Commit

Permalink
Extend test to check model properties
Browse files Browse the repository at this point in the history
  • Loading branch information
beeman committed May 20, 2016
1 parent d3769e7 commit 2e1ee55
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test/component-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,25 @@ describe('Component test', function() {
expect(res.acls).to.be.an('array')
expect(res.mixins).to.be.an('object')
expect(res.properties).to.be.an('object')
expect(res.properties.id).to.deep.equal({
id: 1,
type: 'Number',
generated: true,
})
expect(res.properties.name).to.deep.equal({
type: 'String',
required: true,
})
expect(res.properties.created).to.deep.equal({
type: 'Date',
description: 'Created date.',
defaultFn: 'now',
})
expect(res.properties.modified).to.deep.equal({
type: 'Date',
description: 'Modified date.',
defaultFn: 'now',
})
expect(res.relations).to.be.an('object')
expect(res.validations).to.be.an('array')
})
Expand Down

0 comments on commit 2e1ee55

Please # to comment.