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

refactor: replace deprecated testing class #129

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

mehmetcanay
Copy link
Member

Pull Request

Description
HttpClientTestingModule is deprecated. Updated the tests accordingly.

Related Issue
closes #127

Type of Change

  • Bugfix
  • New Feature
  • Documentation
  • Refactoring
  • Other (please specify):

Proposed Changes
Instead of HttpClientTestingModule:

import { provideHttpClient } from '@angular/common/http';
import {
  provideHttpClientTesting,
  HttpTestingController,
} from '@angular/common/http/testing';

include provideHttpClient() and provideHttpClientTesting() in providers, respectively.

How to Test
ng test

Checklist

  • My code follows the project's coding style.
  • I have tested my changes locally.
  • I have updated the documentation (if applicable).
  • I have added tests to cover my changes (if applicable).

@mehmetcanay mehmetcanay self-assigned this Oct 25, 2024
@mehmetcanay mehmetcanay merged commit 4a155a8 into main Oct 25, 2024
13 checks passed
@mehmetcanay mehmetcanay deleted the refactor-frontend-tests branch October 25, 2024 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update Frontend Tests
1 participant