Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// angular
CommonModule,
HttpClientModule,
ReactiveFormsModule,
// 3rd party UI
FontAwesomeModule,
TextMaskModule,
/**
* ng-bootstrap modules
* only those that are used by app
* should be imported to reduce bundle size
*/
NgbDatepickerModule.forRoot(),
NgbCollapseModule.forRoot(),
NgbModalModule.forRoot(),
NgbTabsetModule.forRoot(),
NgbPaginationModule.forRoot(),
NgbPopoverModule.forRoot(),
NgbAccordionModule.forRoot(),
NgbCarouselModule.forRoot(),
NgbDropdownModule.forRoot(),
],
exports: [
// angular
CommonModule,
HttpClientModule,
ReactiveFormsModule,
// 3rd party UI
FontAwesomeModule,
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [TranslateModule.forRoot(), NgbCollapseModule.forRoot()],
declarations: [SearchSidebarComponent],
schemas: [NO_ERRORS_SCHEMA],
})
.compileComponents(); // compile template and css
}));
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
NgbCollapseModule.forRoot()
],
declarations: [
HeaderComponent,
RouterLinkStubDirective,
RouterLinkActiveStubDirective
]
})
.compileComponents()
.then(() => {
fixture = TestBed.createComponent(HeaderComponent);
component = fixture.componentInstance;
});
}));
export function configureSearchComponentTestingModule(compType) {
TestBed.configureTestingModule({
imports: [TranslateModule.forRoot(), RouterTestingModule.withRoutes([]), NoopAnimationsModule, NgbCollapseModule.forRoot()],
declarations: [compType],
providers: [
{ provide: SearchService, useValue: searchServiceStub },
{
provide: CommunityDataService,
useValue: jasmine.createSpyObj('communityService', ['findById', 'findAll'])
},
{ provide: ActivatedRoute, useValue: activatedRouteStub },
{ provide: RouteService, useValue: routeServiceStub },
{
provide: Store, useValue: store
},
{
provide: HostWindowService, useValue: jasmine.createSpyObj('hostWindowService',
{
isXs: observableOf(true),
import scss from 'highlight.js/lib/languages/scss';
import xml from 'highlight.js/lib/languages/xml';
import {MatPagesModule} from '@angular-material-extensions/pages';
export function hljsLanguages() {
return [
{name: 'typescript', func: typescript},
{name: 'scss', func: scss},
{name: 'xml', func: xml}
];
}
@NgModule({
imports: [
RouterModule,
NgbCollapseModule.forRoot(),
MatPasswordStrengthModule.forRoot(),
MatPagesModule.forRoot(),
DisqusModule.forRoot('mat-password-strength'),
HighlightModule.forRoot({
languages: hljsLanguages
}),
FormsModule,
ReactiveFormsModule,
FlexLayoutModule,
MatCardModule,
MatInputModule,
MatIconModule,
MatDividerModule,
MatProgressBarModule,
MatSlideToggleModule,
MatSnackBarModule,
import {RouterModule} from '@angular/router';
import {NgModule} from '@angular/core';
import {NgbCollapseModule} from '@ng-bootstrap/ng-bootstrap';
import {HeaderComponent} from './header/header.component';
import {FooterComponent} from './footer/footer.component';
import {ContentWrapperComponent} from './content-wrapper/content-wrapper.component';
import {FlexLayoutModule} from '@angular/flex-layout';
import {MatCardModule, MatInputModule} from '@angular/material';
import {MarkdownModule} from 'ngx-markdown';
@NgModule({
imports: [RouterModule,
NgbCollapseModule.forRoot(),
MarkdownModule.forChild(),
FlexLayoutModule,
MatInputModule,
MatCardModule
],
exports: [
HeaderComponent,
FooterComponent,
ContentWrapperComponent,
FlexLayoutModule,
MarkdownModule,
MatInputModule,
MatCardModule
],
declarations: [HeaderComponent, FooterComponent, ContentWrapperComponent],
providers: [],
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [TranslateModule.forRoot(), RouterTestingModule.withRoutes([]), NoopAnimationsModule, NgbCollapseModule.forRoot()],
declarations: [MyDSpacePageComponent, RoleDirective],
providers: [
{ provide: SearchService, useValue: searchServiceStub },
{
provide: CommunityDataService,
useValue: jasmine.createSpyObj('communityService', ['findById', 'findAll'])
},
{ provide: ActivatedRoute, useValue: activatedRouteStub },
{ provide: RouteService, useValue: routeServiceStub },
{
provide: Store, useValue: store
},
{
provide: HostWindowService, useValue: jasmine.createSpyObj('hostWindowService',
{
isXs: observableOf(true),
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
AppRoutingModule,
NgbCollapseModule.forRoot()],
declarations: [
HeaderComponent,
GettingStartedComponent,
HomeComponent]
,
providers: [{ provide: APP_BASE_HREF, useValue: '/' }]
})
.compileComponents();
}));
MatSlideToggleModule,
MatSnackBarModule,
MatTooltipModule,
MatButtonModule
} from '@angular/material';
import {FlexLayoutModule} from '@angular/flex-layout';
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
import {MatFaqModule} from '@angular-material-extensions/faq';
import {HighlightModule} from 'ngx-highlightjs';
import {NgxMaterialPagesModule} from 'ngx-material-pages';
@NgModule({
imports: [
RouterModule,
NgbCollapseModule.forRoot(),
MatFaqModule.forRoot(),
NgxMaterialPagesModule.forRoot(),
HighlightModule,
FormsModule,
ReactiveFormsModule,
FlexLayoutModule,
MatCardModule,
MatInputModule,
MatIconModule,
MatDividerModule,
MatProgressBarModule,
MatSlideToggleModule,
MatSnackBarModule,
MatTooltipModule,
MatButtonModule
],
import { RouterModule } from '@angular/router';
import { NgModule } from '@angular/core';
import { NgbCollapseModule } from '@ng-bootstrap/ng-bootstrap';
import { HeaderComponent } from './header/header.component';
import { FooterComponent } from './footer/footer.component';
import { ContentWrapperComponent } from './content-wrapper/content-wrapper.component';
@NgModule({
imports: [RouterModule, NgbCollapseModule.forRoot() ],
exports: [HeaderComponent, FooterComponent, ContentWrapperComponent],
declarations: [HeaderComponent, FooterComponent, ContentWrapperComponent],
providers: [],
})
export class AppSharedModule { }