Skip to content

Commit 54d9e6d

Browse files
MKirovaMKirova
authored andcommitted
chore(*): Update migration test.
1 parent de48922 commit 54d9e6d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

projects/igniteui-angular/migrations/update-10_1_0/index.spec.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ describe('Update 10.1.0', () => {
2828
appTree.create('/angular.json', JSON.stringify(configJson));
2929
});
3030

31-
it('should update DropPosition.None', done => {
31+
it('should update DropPosition.None', async() => {
3232
const origFileContent =
3333
`import { Component, Injectable, ViewChild } from "@angular/core";` +
3434
`import { IgxGridComponent, DropPosition } from "igniteui-angular";` +
@@ -63,9 +63,8 @@ describe('Update 10.1.0', () => {
6363
'/testSrc/appPrefix/component/drop.component.ts',
6464
origFileContent);
6565

66-
const tree = schematicRunner.runSchematic('migration-16', {}, appTree);
66+
const tree = await schematicRunner.runSchematicAsync('migration-16', {}, appTree).toPromise();
6767
expect(tree.readContent('/testSrc/appPrefix/component/drop.component.ts'))
6868
.toEqual(expectedFileContent);
69-
done();
7069
});
7170
});

0 commit comments

Comments
 (0)