• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

TypeScript sijil.SijilModule类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了TypeScript中sijil.SijilModule的典型用法代码示例。如果您正苦于以下问题:TypeScript SijilModule类的具体用法?TypeScript SijilModule怎么用?TypeScript SijilModule使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了SijilModule类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的TypeScript代码示例。

示例1: beforeEach

 beforeEach(async(() => {
     communicationRulesService = jasmine.createSpyObj('CommunicationRulesService', ['toggleInternalCommunicationRule']);
     notifyService = jasmine.createSpyObj('NotifyService', ['success', 'error']);
     groupNameService = jasmine.createSpyObj('GroupNameService', ['getGroupName']);
     spinnerService = jasmine.createSpyObj('SpinnerService', ['perform']);
     activatedRoute = {root: {firstChild: {firstChild: {}}}} as ActivatedRoute;
     TestBed.configureTestingModule({
         declarations: [
             GroupCardComponent
         ],
         providers: [
             {useValue: communicationRulesService, provide: CommunicationRulesService},
             {useValue: spinnerService, provide: SpinnerService},
             {useValue: notifyService, provide: NotifyService},
             {useValue: groupNameService, provide: GroupNameService},
             {useValue: activatedRoute, provide: ActivatedRoute}
         ],
         imports: [
             SijilModule.forRoot(),
             UxModule.forRoot(null)
         ]
     }).compileComponents();
     fixture = TestBed.createComponent(GroupCardComponent);
     component = fixture.debugElement.componentInstance;
     component.group = generateGroup('Elèves du Lycée Paul Martin');
     (groupNameService.getGroupName as jasmine.Spy).and.returnValue('Elèves du Lycée Paul Martin');
     component.active = true;
     fixture.detectChanges();
 }));
开发者ID:entcore,项目名称:entcore,代码行数:29,代码来源:group-card.component.spec.ts


示例2: beforeEach

 beforeEach(async(() => {
     TestBed.configureTestingModule({
         declarations: [
             GroupUsersList
         ],
         providers: [
             {provide: UserListService, useValue: mockUserListService},
             {provide: Router, useValue: mockRouter}
         ],
         imports: [
             SijilModule.forRoot(),
             UxModule.forRoot(null)
         ]
     }).compileComponents();
     fixture = TestBed.createComponent(GroupUsersList);
     component = fixture.debugElement.componentInstance;
 }));
开发者ID:entcore,项目名称:entcore,代码行数:17,代码来源:group-users-list.component.spec.ts


示例3: beforeEach

    beforeEach(async(() => {
        TestBed.configureTestingModule({
            declarations: [
                UserManualGroupsSection
            ],
            providers: [
                {provide: NotifyService, useValue: mockNotifyService},
                {provide: SpinnerService, useValue: mockSpinnerService},
                {provide: ChangeDetectorRef, useValue: mockChangeDetectorRef}
            ],
            imports: [
                SijilModule.forRoot(),
                UxModule.forRoot(null),
                FormsModule
            ]

        }).compileComponents();
        fixture = TestBed.createComponent(UserManualGroupsSection);
        component = fixture.debugElement.componentInstance;
    }));
开发者ID:entcore,项目名称:entcore,代码行数:20,代码来源:user-manualgroups-section.component.spec.ts


示例4: beforeEach

 beforeEach(() => {
     TestBed.configureTestingModule({
         providers: [GroupNameService],
         imports: [SijilModule.forRoot()]
     });
     groupNameService = TestBed.get(GroupNameService);
     const bundlesService = TestBed.get(BundlesService);
     bundlesService.addToBundle({
         "group.card.structure.Personnel": "Personnels de {{name}}",
         "group.card.structure.Relative": "Parents de {{name}}",
         "group.card.structure.Student": "Élèves de {{name}}",
         "group.card.structure.Teacher": "Enseignants de {{name}}",
         "group.card.structure.Guest": "Invités de {{name}}",
         "group.card.class.Personnel": "Personnels de la classe {{name}}",
         "group.card.class.Relative": "Parents de la classe {{name}}",
         "group.card.class.Student": "Élèves de la classe {{name}}",
         "group.card.class.Teacher": "Enseignants de la classe {{name}}",
         "group.card.class.Guest": "Invités de la classe {{name}}"
     });
 });
开发者ID:entcore,项目名称:entcore,代码行数:20,代码来源:group-name.service.spec.ts


示例5: beforeEach

    beforeEach(async(() => {
        TestBed.configureTestingModule({
            declarations: [
                UserCommunicationComponent,
                MockCommunicationRulesComponent
            ],
            providers: [],
            imports: [
                SijilModule.forRoot(),
                UxModule.forRoot(null)
            ]

        }).compileComponents();
        fixture = TestBed.createComponent(UserCommunicationComponent);
        component = fixture.debugElement.componentInstance;
        const bundlesService = TestBed.get(BundlesService);
        bundlesService.addToBundle({
            "user.communication.back-to-user-details": "Retour à la fiche",
            "user.communication.title": "Communication de {{ lastName }} {{ firstName }}"
        });

        axellePotier = generateTestingData(
            'Axelle',
            'Potier',
            [generateGroup('c1')],
            [generateGroup('groupf1'), generateGroup('groupf2')],
            [generateGroup('groupm1')]);
        harryPotter = generateTestingData(
            'Harry',
            'Potter',
            [generateGroup('c1')],
            null,
            null);

        component.user = axellePotier.user;
        component.userSendingCommunicationRules = axellePotier.communicationRules;
        component.addCommunicationPickableGroups = [generateGroup('group1')];
        fixture.detectChanges();
    }));
开发者ID:entcore,项目名称:entcore,代码行数:39,代码来源:user-communication.component.spec.ts


示例6: beforeEach

    beforeEach(async(() => {
        TestBed.configureTestingModule({
            declarations: [
                UserInfoSection
            ],
            providers: [
                {provide: NotifyService, useValue: mockNotifyService},
                {provide: SpinnerService, useValue: mockSpinnerService},
                {provide: ChangeDetectorRef, useValue: mockChangeDetectorRef},
                {provide: UserInfoService, useValue: mockUserInfoService}
            ],
            imports: [
                HttpClientTestingModule,
                SijilModule.forRoot(),
                UxModule.forRoot(null),
                FormsModule
            ]

        }).compileComponents();
        fixture = TestBed.createComponent(UserInfoSection);
        component = fixture.debugElement.componentInstance;
        httpController = TestBed.get(HttpTestingController);
    }));
开发者ID:entcore,项目名称:entcore,代码行数:23,代码来源:user-info-section.component.spec.ts


示例7: beforeEach

 beforeEach(async(() => {
     TestBed.configureTestingModule({
         declarations: [
             GroupCreate
         ],
         providers: [
             {provide: GroupsStore, useValue: mockGroupsStore},
             {provide: NotifyService, useValue: mockNotifyService},
             {provide: SpinnerService, useValue: mockSpinnerService},
             {provide: Router, useValue: mockRouter},
             {provide: ActivatedRoute, useValue: {params: convertToParamMap({})}},
             {provide: Location, useValue: mockLocation}
         ],
         imports: [
             HttpClientTestingModule,
             SijilModule.forRoot(),
             UxModule.forRoot(null),
             FormsModule
         ]
     }).compileComponents();
     fixture = TestBed.createComponent(GroupCreate);
     component = fixture.debugElement.componentInstance;
     httpController = TestBed.get(HttpTestingController);
 }));
开发者ID:entcore,项目名称:entcore,代码行数:24,代码来源:group-create.component.spec.ts



注:本文中的sijil.SijilModule类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
TypeScript silent-error.debugOrThrow函数代码示例发布时间:2022-05-25
下一篇:
TypeScript sijil.BundlesService类代码示例发布时间:2022-05-25
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap