mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
clean unit test (#4890)
* promote use setupTestbed * fix comment using right spy and remove deprecated moment method usage * restore md icon file * remove error translation log * restore extension test
This commit is contained in:
@@ -16,9 +16,10 @@
|
||||
*/
|
||||
|
||||
import { Component } from '@angular/core';
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { By } from '@angular/platform-browser';
|
||||
import { DiagramTooltipComponent } from './diagram-tooltip.component';
|
||||
import { setupTestBed } from '../../../../core/testing/setupTestBed';
|
||||
|
||||
@Component({
|
||||
template: `
|
||||
@@ -39,11 +40,9 @@ describe('DiagramTooltipComponent', () => {
|
||||
let component: DiagramTooltipComponent;
|
||||
let data;
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [DiagramTooltipComponent]
|
||||
}).compileComponents();
|
||||
}));
|
||||
setupTestBed({
|
||||
declarations: [DiagramTooltipComponent]
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(DiagramTooltipComponent);
|
||||
@@ -127,11 +126,9 @@ describe('DiagramTooltipComponent', () => {
|
||||
|
||||
let fixture: ComponentFixture<TestHostComponent>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [DiagramTooltipComponent, TestHostComponent]
|
||||
}).compileComponents();
|
||||
}));
|
||||
setupTestBed({
|
||||
declarations: [DiagramTooltipComponent, TestHostComponent]
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(TestHostComponent);
|
||||
|
Reference in New Issue
Block a user