Skip to content

Commit

Permalink
chore: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
cipchk committed Jun 30, 2024
1 parent 3682e2d commit 211b10e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/abc/result/result.spec.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { Directionality } from '@angular/cdk/bidi';
import { HttpClientTestingModule } from '@angular/common/http/testing';
import { provideHttpClientTesting } from '@angular/common/http/testing';
import { Component, DebugElement, TemplateRef, ViewChild } from '@angular/core';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';

import { createTestContext } from '@delon/testing';
import { NzSafeAny } from 'ng-zorro-antd/core/types';
Expand All @@ -17,7 +18,8 @@ describe('abc: result', () => {

beforeEach(() => {
TestBed.configureTestingModule({
imports: [ResultModule, HttpClientTestingModule],
imports: [ResultModule, NoopAnimationsModule],
providers: [provideHttpClientTesting()],
declarations: [TestComponent]
});
({ fixture, dl, context } = createTestContext(TestComponent));
Expand Down
2 changes: 2 additions & 0 deletions packages/abc/reuse-tab/reuse-tab.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Component, DebugElement, Injectable, TemplateRef, ViewChild } from '@angular/core';
import { ComponentFixture, discardPeriodicTasks, fakeAsync, flush, TestBed, tick } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
import { ExtraOptions, RouteReuseStrategy, ROUTER_CONFIGURATION } from '@angular/router';
import { RouterTestingModule } from '@angular/router/testing';
import { Observable, of } from 'rxjs';
Expand Down Expand Up @@ -45,6 +46,7 @@ describe('abc: reuse-tab', () => {
imports: [
DelonLocaleModule,
ReuseTabComponent,
NoopAnimationsModule,
RouterTestingModule.withRoutes(
[
{
Expand Down

0 comments on commit 211b10e

Please sign in to comment.