mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-08-29 11:00:40 +08:00
Fix issues with front-end testing
This commit is contained in:
parent
e5b17089f2
commit
bc0c674603
1 changed files with 4 additions and 2 deletions
|
@ -3,16 +3,18 @@ import {CUSTOM_ELEMENTS_SCHEMA} from '@angular/core';
|
||||||
import {RouterTestingModule} from '@angular/router/testing';
|
import {RouterTestingModule} from '@angular/router/testing';
|
||||||
import {HttpClientTestingModule, HttpTestingController} from '@angular/common/http/testing';
|
import {HttpClientTestingModule, HttpTestingController} from '@angular/common/http/testing';
|
||||||
|
|
||||||
|
import {NgbModule} from '@ng-bootstrap/ng-bootstrap';
|
||||||
|
|
||||||
import {NavbarUiComponent} from './navbar.component';
|
import {NavbarUiComponent} from './navbar.component';
|
||||||
|
|
||||||
describe('NavbarComponent', () => {
|
describe('NavbarUiComponent', () => {
|
||||||
let component: NavbarUiComponent;
|
let component: NavbarUiComponent;
|
||||||
let fixture: ComponentFixture<NavbarUiComponent>;
|
let fixture: ComponentFixture<NavbarUiComponent>;
|
||||||
|
|
||||||
beforeEach(async(() => {
|
beforeEach(async(() => {
|
||||||
TestBed.configureTestingModule({
|
TestBed.configureTestingModule({
|
||||||
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
||||||
imports: [RouterTestingModule, HttpClientTestingModule],
|
imports: [RouterTestingModule, HttpClientTestingModule, NgbModule],
|
||||||
declarations: [NavbarUiComponent]
|
declarations: [NavbarUiComponent]
|
||||||
})
|
})
|
||||||
.compileComponents();
|
.compileComponents();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue