Skip to content

Commit 21d68ee

Browse files
committed
chore(*): refactoring migrations test
1 parent c831680 commit 21d68ee

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,7 @@ describe(`Update to ${version}`, () => {
145145
`$custom-scrollbar: scrollbar-theme($size: 10px);`
146146
);
147147

148-
const tree = await schematicRunner
149-
.runSchematicAsync(migrationName, {}, appTree)
150-
.toPromise();
148+
const tree = await schematicRunner.runSchematic(migrationName, { shouldInvokeLS: false }, appTree);
151149

152150
expect(tree.readContent('/testSrc/appPrefix/component/test.component.scss')).toEqual(
153151
`$custom-scrollbar: scrollbar-theme($scrollbar-size: 10px);`
@@ -160,9 +158,7 @@ describe(`Update to ${version}`, () => {
160158
`$custom-input: input-group-theme($label-floated-background: transparent, $label-floated-disabled-background: transparent);`
161159
);
162160

163-
const tree = await schematicRunner
164-
.runSchematicAsync(migrationName, {}, appTree)
165-
.toPromise();
161+
const tree = await schematicRunner.runSchematic(migrationName, { shouldInvokeLS: false }, appTree);
166162

167163
expect(tree.readContent('/testSrc/appPrefix/component/test.component.scss')).toEqual(
168164
`$custom-input: input-group-theme();`

0 commit comments

Comments
 (0)