Skip to content

Commit df505ea

Browse files
committed
refactor(tests): drag and drop tests
1 parent 030ef06 commit df505ea

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

projects/igniteui-angular/src/lib/directives/drag-drop/drag-drop.spec.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { Component, ViewChildren, QueryList, ViewChild, ElementRef, TemplateRef,
22
import { TestBed, ComponentFixture, waitForAsync } from '@angular/core/testing';
33
import { By } from '@angular/platform-browser';
44
import { UIInteractions, wait} from '../../test-utils/ui-interactions.spec';
5-
import { configureTestSuite } from '../../test-utils/configure-suite';
65
import { first } from 'rxjs/operators';
76
import { IgxInsertDropStrategy, IgxAppendDropStrategy, IgxPrependDropStrategy } from './drag-drop.strategy';
87
import {
@@ -22,8 +21,7 @@ describe('General igxDrag/igxDrop', () => {
2221
let dropAreaRects = { top: 0, left: 0, right: 0, bottom: 0};
2322
let dragDirsRects = [{ top: 0, left: 0, right: 0, bottom: 0}];
2423

25-
configureTestSuite({ checkLeaks: true });
26-
beforeAll(waitForAsync(() => {
24+
beforeEach(waitForAsync(() => {
2725
TestBed.configureTestingModule({
2826
imports: [TestDragDropComponent]
2927
})
@@ -1393,8 +1391,7 @@ describe('General igxDrag/igxDrop', () => {
13931391
});
13941392

13951393
describe('Linked igxDrag/igxDrop ', () => {
1396-
configureTestSuite();
1397-
beforeAll(waitForAsync(() => {
1394+
beforeEach(waitForAsync(() => {
13981395
TestBed.configureTestingModule({
13991396
imports: [
14001397
TestDragDropLinkedSingleComponent,
@@ -1876,8 +1873,7 @@ describe('Linked igxDrag/igxDrop ', () => {
18761873
});
18771874

18781875
describe('Nested igxDrag elements', () => {
1879-
configureTestSuite();
1880-
beforeAll(waitForAsync(() => {
1876+
beforeEach(waitForAsync(() => {
18811877
TestBed.configureTestingModule({
18821878
imports: [TestDragDropNestedComponent]
18831879
})

0 commit comments

Comments
 (0)