Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add provide method #97

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

luzogue970
Copy link

@luzogue970 luzogue970 commented Jun 13, 2024

Add provide method for ngx-repository-module, ngx-firestore-repository-module, ngx-http-repository-module.

Methods forRoot marked as deprecated.
Replace forRoot uses by provide method.

…e-repository-module, ngx-http-repository-module.

Methods forRoot marked as deprecated.
Replace forRoot uses by provide method.
@oscar-guerin oscar-guerin changed the title feat MINOR: provide method add feat: add provide method Jun 13, 2024
@@ -162,7 +162,7 @@ describe('NgxRepositoryService', () => {
expect(repository).toEqual('Book - MyBookRepository');
});

it('should throw error when multiple builders and repository type is not configured', () => {
it('should throw error when multiple builders and : type is not configured', () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert ce fichier

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert ce fichier

@@ -21,10 +21,12 @@ export function initializeRepository<T>(bookImpl: Type<T>, providers: any[] = []

TestBed.configureTestingModule({
imports: [
NgxRepositoryModule.forRoot(),
NgxHttpRepositoryModule.forRoot()
NgxRepositoryModule,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

du coup il faut enlever les imports de module et juste utiliser le provide

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants