Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
WelcomeBannerComponent
],
imports: [
BrowserModule,
Routing,
TranslateModule.forRoot(
{
loader: {
provide: TranslateLoader,
useFactory: HttpLoaderFactory,
deps: [HttpClient]
}
}
),
CookieModule.forRoot(),
MatPasswordStrengthModule.forRoot(),
FlexLayoutModule,
HttpClientModule,
ReactiveFormsModule,
BrowserAnimationsModule,
SlideshowModule,
QRCodeModule,
BarRatingModule,
FileUploadModule,
ClipboardModule,
NgxSpinnerModule,
MatToolbarModule,
MatIconModule,
MatFormFieldModule,
MatSelectModule,
MatButtonModule,
MatSidenavModule,
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
MatPasswordStrengthModule.forRoot()],
declarations: [HomeComponent]
})
.compileComponents()
.then(() => {
fixture = TestBed.createComponent(HomeComponent);
component = fixture.componentInstance;
});
}));
beforeEach(async(() => {
securityQuestionService = jasmine.createSpyObj('SecurityQuestionService', ['findBy'])
securityQuestionService.findBy.and.returnValue(of({}))
userService = jasmine.createSpyObj('UserService',['resetPassword'])
userService.resetPassword.and.returnValue(of({}))
TestBed.configureTestingModule({
declarations: [ ForgotPasswordComponent ],
imports: [
TranslateModule.forRoot(),
MatPasswordStrengthModule.forRoot(),
HttpClientTestingModule,
ReactiveFormsModule,
BrowserAnimationsModule,
MatCardModule,
MatFormFieldModule,
MatInputModule,
MatButtonModule,
MatTooltipModule,
MatIconModule,
MatSlideToggleModule
],
providers: [
{ provide: SecurityQuestionService, useValue: securityQuestionService },
{ provide: UserService, useValue: userService }
]
})
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,
MatTooltipModule,
beforeEach(async(() => {
securityAnswerService = jasmine.createSpyObj('SecurityAnswerService', ['save'])
securityAnswerService.save.and.returnValue(of({}))
securityQuestionService = jasmine.createSpyObj('SecurityQuestionService', ['find'])
securityQuestionService.find.and.returnValue(of([{}]))
userService = jasmine.createSpyObj('UserService', ['save'])
userService.save.and.returnValue(of({}))
TestBed.configureTestingModule({
imports: [
RouterTestingModule.withRoutes([
{ path: 'login', component: LoginComponent }
]),
TranslateModule.forRoot(),
MatPasswordStrengthModule.forRoot(),
HttpClientTestingModule,
ReactiveFormsModule,
BrowserAnimationsModule,
MatCardModule,
MatFormFieldModule,
MatCheckboxModule,
MatInputModule,
MatSelectModule,
MatButtonModule,
MatIconModule,
MatSnackBarModule,
MatTooltipModule,
MatIconModule,
MatSlideToggleModule
],
declarations: [ RegisterComponent, LoginComponent ],