Skip to content

Commit

Permalink
test: add some units for custom node component
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-mangilev committed Oct 5, 2024
1 parent cf334d5 commit cd129f6
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { Component } from "@angular/core";
import { TestBed, ComponentFixture } from '@angular/core/testing';
import { CustomDynamicNodeComponent } from "./custom-dynamic-node.component";

@Component({
standalone: true,
template: ``,
})
class TestCustomDynamicNodeComponent extends CustomDynamicNodeComponent { }

describe(('TestCustomDynamicNodeComponent'), () => {
let component: TestCustomDynamicNodeComponent;
let fixture: ComponentFixture<TestCustomDynamicNodeComponent>;

beforeEach(() => {
TestBed.configureTestingModule({
imports: [TestCustomDynamicNodeComponent],
});

fixture = TestBed.createComponent(TestCustomDynamicNodeComponent);
component = fixture.componentInstance;
});

it('should create', () => {
// should create without DI errors
expect(component).toBeTruthy();
});
})
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { Component } from "@angular/core";
import { CustomNodeComponent } from "./custom-node.component";
import { TestBed, ComponentFixture } from '@angular/core/testing';

@Component({
standalone: true,
template: ``,
})
class TestCustomNodeComponent extends CustomNodeComponent { }

describe(('TestCustomNodeComponent'), () => {
let component: TestCustomNodeComponent;
let fixture: ComponentFixture<TestCustomNodeComponent>;

beforeEach(() => {
TestBed.configureTestingModule({
imports: [TestCustomNodeComponent],
});

fixture = TestBed.createComponent(TestCustomNodeComponent);
component = fixture.componentInstance;
});

it('should create', () => {
// should create without DI errors
expect(component).toBeTruthy();
});
})

0 comments on commit cd129f6

Please sign in to comment.