Skip to content

Commit

Permalink
test: 💍 keepalive
Browse files Browse the repository at this point in the history
Keepalive test with new angular implementation
  • Loading branch information
msibhuiyan committed Jun 11, 2024
1 parent 83d0a92 commit 838f3b8
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions projects/keepalive/src/lib/keepalive.spec.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,13 @@
import { fakeAsync, inject, TestBed, tick } from '@angular/core/testing';
import {
HttpRequest,
HttpResponse,
HttpClientModule
} from '@angular/common/http';
import {
HttpClientTestingModule,
HttpTestingController
} from '@angular/common/http/testing';
import { HttpRequest, HttpResponse, provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
import { HttpTestingController, provideHttpClientTesting } from '@angular/common/http/testing';

import { Keepalive } from './keepalive';

describe('keepalive/Keepalive', () => {
beforeEach(() => {
TestBed.configureTestingModule({
imports: [HttpClientTestingModule, HttpClientModule],
providers: [Keepalive]
TestBed.configureTestingModule({
providers: [Keepalive,provideHttpClient(withInterceptorsFromDi()), provideHttpClientTesting()]
});
});

Expand Down

0 comments on commit 838f3b8

Please sign in to comment.