Skip to content

Commit

Permalink
Address code review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rashmihunt committed Aug 18, 2017
1 parent 45fd192 commit 0ee85b2
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions test.e2e/spec/services.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1095,15 +1095,11 @@ define(['angular', 'given', 'util'], function(angular, given, util) {
var schema = Product.schema;
expect(schema).to.have.property('name', 'Product');
expect(schema).to.have.property('properties');
console.log('schema properties', schema.properties);
expect(schema.properties).to.eql({
// "name: 'string'" was converted to full schema object
name: { type: 'String' },
// Type "number" was normalized to "Number"
price: { type: 'Number' },
// auto-injected id property
id: { id: 1, generated: true, type: 'Number', updateOnly: true },
});
expect(schema.properties).to.have.keys('name', 'price', 'id');
expect(schema.properties.name).to.have.property('type', 'String');
expect(schema.properties.price).to.have.property('type', 'Number');
expect(schema.properties.id).to.include(
{ id: 1, generated: true, type: 'Number' });
});
});

Expand Down

0 comments on commit 0ee85b2

Please sign in to comment.