Skip to content

Commit

Permalink
feat(repository): finished has-many-through unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
clayrisser committed Feb 12, 2019
1 parent c3d94ee commit 38e2ab0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ describe('createHasManyThroughRepositoryFactory', () => {
Getter.fromValue(customerRepo),
Getter.fromValue(orderRepo),
),
).to.throw(/target model Customer is missing.*foreign key companyId/);
).to.throw(/through model Customer is missing.*foreign key companyId/);
});

/*------------- HELPERS ---------------*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ export interface HasManyThroughRepository<Target extends Entity> {
* Create a target model instance
* @param targetModelData The target model data
* @param options Options for the operation
* @param throughOptions Options passed to create through
* @returns A promise which resolves to the newly created target model instance
*/
create(
targetModelData: DataObject<Target>,
options?: Options,
throughOptions?: Options,
): Promise<Target>;
/**
* Find target model instance(s)
Expand Down

0 comments on commit 38e2ab0

Please sign in to comment.