-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add some units for custom node component
- Loading branch information
1 parent
cf334d5
commit cd129f6
Showing
2 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
...src/lib/vflow/public-components/custom-dynamic-node/custom-dynamic-node.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
}); | ||
}) |
28 changes: 28 additions & 0 deletions
28
...s/ngx-vflow-lib/src/lib/vflow/public-components/custom-node/custom-node.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
}); | ||
}) |