UNPKG

better-npm-init

Version:

A better version of npm init, with templates and more. Usage: better-npm-init <template> [--yarn] [--install] [--git] [--yes] [--help]

33 lines (27 loc) 1.03 kB
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { MatNativeDateModule } from '@angular/material/core'; import { MatDatepickerModule } from '@angular/material/datepicker'; import { SharedModule } from '../../shared.module'; import { ScamComponent } from './scam.component'; describe('ScamComponent', () => { let component: ScamComponent; let fixture: ComponentFixture<ScamComponent>; beforeEach( waitForAsync(() => { TestBed.configureTestingModule({ declarations: [ScamComponent], imports: [SharedModule, MatDatepickerModule, MatNativeDateModule], schemas: [CUSTOM_ELEMENTS_SCHEMA], }).compileComponents(); }) ); beforeEach(() => { fixture = TestBed.createComponent(ScamComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); });