How to use the @clr/angular.ClarityModule.forRoot function in @clr/angular

To help you get started, we’ve selected a few @clr/angular examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github all-of-us / workbench / ui / src / app / pages / login / page-template-signed-out / component.spec.ts View on Github external
beforeEach(fakeAsync(() => {
    TestBed.configureTestingModule({
      imports: [
        ClarityModule.forRoot()
      ],
      declarations: [
        PageTemplateSignedOutComponent,
      ],
      providers: [
        {
          provide: ServerConfigService,
          useValue: new ServerConfigServiceStub({
            gsuiteDomain: 'fake-research-aou.org'
          })
        },
      ]
    }).compileComponents().then(() => {
      fixture = TestBed.createComponent(PageTemplateSignedOutComponent);
      tick();
    });
github all-of-us / workbench / ui / src / app / views / edit-modal / component.spec.ts View on Github external
beforeEach(async(() =>
    TestBed.configureTestingModule({
      imports: [
        ClarityModule.forRoot(),
        ReactiveFormsModule,
      ],
      declarations: [EditModalComponent],
      providers: [
        { provide: Router, useClass: RouterStub },
        { provide: CohortsService, useClass: CohortsServiceStub },
        { provide: ConceptSetsService },
        {
          provide: ActivatedRoute,
          deps: [CohortsServiceStub],
          useClass: ActivatedRouteStub
        },
        CohortsServiceStub,
      ]
    }).compileComponents()
  ));
github vmware / admiral / ui / ng-app / src / app / app.component.spec.ts View on Github external
beforeEach(() => {
        TestBed.configureTestingModule({
            declarations: [
                AppComponent
            ],
            imports: [
                ClarityModule.forRoot(),
                ROUTING
            ],
            providers: [{provide: APP_BASE_HREF, useValue: '/'}]
        });

        fixture = TestBed.createComponent(AppComponent);
        fixture.detectChanges();
        compiled = fixture.nativeElement;


    });
github all-of-us / workbench / ui / src / app / views / invitation-key / component.spec.ts View on Github external
beforeEach(fakeAsync(() => {
    profileServiceStub = new ProfileServiceStub();
    TestBed.configureTestingModule({
      imports: [
        FormsModule,
        ClarityModule.forRoot()
      ],
      declarations: [
        LoginComponent,
        AccountCreationComponent,
        AccountCreationSuccessComponent,
        InvitationKeyComponent,
        PageTemplateSignedOutComponent,
        RoutingSpinnerComponent
      ],
      providers: [
        { provide: LoginComponent, useValue: {}},
        { provide: SignInService, useValue: {}},
        { provide: ProfileService, useValue: profileServiceStub },
        {
          provide: ServerConfigService,
          useValue: new ServerConfigServiceStub({
github all-of-us / workbench / ui / src / app / views / account-creation / component.spec.ts View on Github external
beforeEach(fakeAsync(() => {
    TestBed.configureTestingModule({
      imports: [
        FormsModule,
        ClarityModule.forRoot()
      ],
      declarations: [
        LoginComponent,
        AccountCreationComponent,
        AccountCreationSuccessComponent,
        InvitationKeyComponent,
        PageTemplateSignedOutComponent
      ],
      providers: [
        { provide: LoginComponent, useValue: {}},
        { provide: InvitationKeyComponent, useValue: {}},
        { provide: ProfileService, useValue: new ProfileServiceStub() },
      ]
    }).compileComponents().then(() => {
      fixture = TestBed.createComponent(AccountCreationComponent);
      tick();
github all-of-us / workbench / ui / src / app / views / admin-review-workspace / component.spec.ts View on Github external
beforeEach(fakeAsync(() => {
    TestBed.configureTestingModule({
      imports: [
        FormsModule,
        ClarityModule.forRoot()
      ],
      declarations: [
        AdminReviewWorkspaceComponent,
        BugReportComponent
      ],
      providers: [
        { provide: ProfileService, useValue: new ProfileServiceStub() },
        { provide: ProfileStorageService, useValue: new ProfileStorageServiceStub() },
        {
          provide: ServerConfigService,
          useValue: new ServerConfigServiceStub({
            gsuiteDomain: 'fake-research-aou.org'
          })
        },
        { provide: WorkspacesService, useValue: new WorkspacesServiceStub() }
      ]
github all-of-us / workbench / ui / src / app / pages / initial-error / component.spec.ts View on Github external
beforeEach(fakeAsync(() => {
    TestBed.configureTestingModule({
      imports: [
        RouterTestingModule,
        ClarityModule.forRoot()
      ],
      declarations: [
        InitialErrorComponent,
      ],
      providers: [
        {
          provide: ServerConfigService,
          useValue: new ServerConfigServiceStub({
            gsuiteDomain: 'fake-research-aou.org'
          })
        },
      ]
    }).compileComponents().then(() => {
      fixture = TestBed.createComponent(InitialErrorComponent);
      tick();
    });
github all-of-us / workbench / ui / src / app / views / workspace-nav-bar / component.spec.ts View on Github external
beforeEach(fakeAsync(() => {
    TestBed.configureTestingModule({
      imports: [
        FormsModule,
        ClarityModule.forRoot(),
        RouterTestingModule.withRoutes([{
          path: 'workspaces/:ns/:wsid',
          component: WorkspaceNavBarComponent,
          data: {
            workspace: {
              ...WorkspacesServiceStub.stubWorkspace(),
              accessLevel: WorkspaceAccessLevel.OWNER,
            }
          },
          children: [
            {
              path: '',
              component: FakeAboutComponent,
            },
            {
              path: 'clone',
github all-of-us / workbench / ui / src / app / components / error-handler / component.spec.ts View on Github external
beforeEach(fakeAsync(() => {
    TestBed.configureTestingModule({
      imports: [
        ClarityModule.forRoot()
      ],
      declarations: [
        ErrorHandlerComponent,
      ],
      providers: [
        {provide: ErrorHandlingService, useValue: new ErrorHandlingServiceStub()},
        {
          provide: ServerConfigService,
          useValue: new ServerConfigServiceStub({
            gsuiteDomain: 'fake-research-aou.org'
          })
        },
        {provide: StatusCheckService, useValue: new StatusCheckServiceStub()}
      ]
    }).compileComponents().then(() => {
      fixture = TestBed.createComponent(ErrorHandlerComponent);
github all-of-us / workbench / ui / src / app / views / signed-in / component.spec.ts View on Github external
beforeEach(fakeAsync(() => {
    TestBed.configureTestingModule({
      imports: [
        FormsModule,
        RouterTestingModule,
        ClarityModule.forRoot()
      ],
      declarations: [
        BreadcrumbComponent,
        BugReportComponent,
        SignedInComponent,
        RoutingSpinnerComponent
      ],
      providers: [
        {provide: BugReportService, useValue: new BugReportServiceStub()},
        {provide: ErrorHandlingService, useValue: new ErrorHandlingServiceStub()},
        {provide: ProfileStorageService, useValue: new ProfileStorageServiceStub()},
        {
          provide: ServerConfigService,
          useValue: new ServerConfigServiceStub({
            gsuiteDomain: 'fake-research-aou.org'
          })