Skip to content

Commit

Permalink
refactor(repository-tests): move relation tests to repository-tests p…
Browse files Browse the repository at this point in the history
…ackage

Co-authored-by: Nora <[email protected]>
  • Loading branch information
Agnes Lin and nabdelgadir committed Aug 15, 2019
1 parent 535f775 commit 5800d99
Show file tree
Hide file tree
Showing 30 changed files with 1,724 additions and 840 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {DefaultCrudRepository} from '@loopback/repository';
import {
CrudRepositoryCtor,
crudRepositoryTestSuite,
relationsRepositoryTestSuite,
} from '@loopback/repository-tests';
import {MONGODB_CONFIG, MONGODB_FEATURES} from './mongodb.datasource';

Expand All @@ -17,4 +18,11 @@ describe('MongoDB + DefaultCrudRepository', () => {
DefaultCrudRepository as CrudRepositoryCtor,
MONGODB_FEATURES,
);

relationsRepositoryTestSuite(
MONGODB_CONFIG,
// Workaround for https://github.com/microsoft/TypeScript/issues/31840
DefaultCrudRepository as CrudRepositoryCtor,
MONGODB_FEATURES,
);
});
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {DefaultTransactionalRepository} from '@loopback/repository';
import {
CrudRepositoryCtor,
crudRepositoryTestSuite,
relationsRepositoryTestSuite,
} from '@loopback/repository-tests';
import {MYSQL_CONFIG, MYSQL_FEATURES} from './mysql.datasource';

Expand All @@ -17,4 +18,11 @@ describe('MySQL + DefaultTransactionalRepository', () => {
DefaultTransactionalRepository as CrudRepositoryCtor,
MYSQL_FEATURES,
);

relationsRepositoryTestSuite(
MYSQL_CONFIG,
// Workaround for https://github.com/microsoft/TypeScript/issues/31840
DefaultTransactionalRepository as CrudRepositoryCtor,
MYSQL_FEATURES,
);
});
Loading

0 comments on commit 5800d99

Please sign in to comment.