Skip to content

Commit

Permalink
fixup!
Browse files Browse the repository at this point in the history
  • Loading branch information
nabdelgadir committed Aug 15, 2019
1 parent 609bdf2 commit a94bb14
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function belongsToRelationAcceptance(
repositoryClass: CrudRepositoryCtor,
features: CrudFeatures,
) {
describe('BelongsTo relation', () => {
describe('BelongsTo relation (acceptance)', () => {
before(deleteAllModelsInDefaultDataSource);

// Given a Customer and Order models - see definitions at the bottom
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function belongsToFactorySuite(
>;
let orderRepo: EntityCrudRepository<Order, typeof Order.prototype.id>;

describe('BelongsTo relation', () => {
describe('BelongsTo relation (integration)', () => {
let findCustomerOfOrder: BelongsToAccessor<
Customer,
typeof Order.prototype.id
Expand Down Expand Up @@ -104,7 +104,7 @@ export function belongsToFactorySuite(
customerId: number;

static definition = new ModelDefinition('Order')
.addProperty('id', {type: 'number', id: true})
.addProperty('id', {type: 'number', id: true, generated: true})
.addProperty('description', {type: 'string', required: true})
.addProperty('customerId', {type: 'number', required: true})
.addRelation({
Expand All @@ -123,7 +123,7 @@ export function belongsToFactorySuite(
orders: Order[];

static definition: ModelDefinition = new ModelDefinition('Customer')
.addProperty('id', {type: 'number', id: true})
.addProperty('id', {type: 'number', id: true, generated: true})
.addProperty('name', {type: 'string', required: true})
.addProperty('orders', {type: Order, array: true})
.addRelation({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function hasManyFactorySuite(
let orderRepo: EntityCrudRepository<Order, typeof Order.prototype.id>;
let reviewRepo: EntityCrudRepository<Review, typeof Review.prototype.id>;

describe('HasMany relation', () => {
describe('HasMany relation (integration)', () => {
let existingCustomerId: number;

let customerOrderRepo: HasManyRepository<Order>;
Expand Down

0 comments on commit a94bb14

Please sign in to comment.