How to use the @delon/testing.createTestContext function in @delon/testing

To help you get started, we’ve selected a few @delon/testing 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 ng-alain / delon / packages / abc / page-header / page-header.spec.ts View on Github external
it('General Configuration', inject([PageHeaderConfig], (cog: PageHeaderConfig) => {
      cog.home = 'H';
      cog.recursiveBreadcrumb = false;
      ({ fixture, dl, context } = createTestContext(TestComponent));
      expect(context.comp.home).toBe('H');
      expect(context.comp.autoBreadcrumb).toBe(true);
      expect(context.comp.recursiveBreadcrumb).toBe(false);
    }));
github ng-alain / delon / packages / abc / avatar-list / avatar-list.spec.ts View on Github external
beforeEach(() => {
    ({ fixture, dl, context } = createTestContext(TestComponent));
    fixture.detectChanges();
  });
github ng-alain / delon / packages / form / src / widgets / mention / mention.widget.spec.ts View on Github external
beforeEach(() => {
    ({ fixture, dl, context } = createTestContext(TestFormComponent));
    page = new SFPage(context.comp);
    page.cleanOverlay().prop(dl, context, fixture);
  });
github ng-alain / delon / packages / abc / image / image.spec.ts View on Github external
beforeEach(() => {
      ({ fixture, dl, context } = createTestContext(TestComponent));
      fixture.detectChanges();
    });
github ng-alain / delon / packages / form / src / widgets / number / number.widget.spec.ts View on Github external
beforeEach(() => {
    ({ fixture, dl, context } = createTestContext(TestFormComponent));
    page = new SFPage(context.comp);
    page.prop(dl, context, fixture);
  });
github ng-alain / delon / packages / abc / edit / edit.spec.ts View on Github external
function createComp() {
    ({ fixture, dl, context } = createTestContext(TestComponent));
    fixture.detectChanges();
    page = new PageObject();
  }
github ng-alain / delon / packages / abc / result / result.spec.ts View on Github external
beforeEach(() => {
    ({ fixture, dl, context } = createTestContext(TestComponent));
    fixture.detectChanges();
  });
github ng-alain / delon / packages / form / src / widgets / array / array.widget.spec.ts View on Github external
beforeEach(() => {
    ({ fixture, dl, context } = createTestContext(TestFormComponent));
    page = new SFPage(context.comp);
    page.prop(dl, context, fixture);
  });
github ng-alain / delon / packages / util / src / addon / string_template_outlet.spec.ts View on Github external
beforeEach(() => {
    ({ fixture, dl, context } = createTestContext(TestComponent));
    fixture.detectChanges();
  });
github ng-alain / delon / packages / chart / trend / trend.spec.ts View on Github external
beforeEach(() => {
    ({ fixture, dl, context } = createTestContext(TestComponent));
    fixture.detectChanges();
  });