Skip to content

Commit 2250218

Browse files
committed
fix(radio-group): failing migrations
1 parent a1bba24 commit 2250218

File tree

2 files changed

+14
-24
lines changed

2 files changed

+14
-24
lines changed

projects/igniteui-angular/migrations/update-15_0_0/changes/inputs.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
"remove": "true",
77
"owner": {
88
"selector": "igx-radio-group",
9-
"type": "directive"
9+
"type": "component"
1010
}
1111
},
1212
{
1313
"name": "labelPosition",
1414
"remove": "true",
1515
"owner": {
1616
"selector": "igx-radio-group",
17-
"type": "directive"
17+
"type": "component"
1818
}
1919
}
2020
]

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

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -150,35 +150,25 @@ describe(`Update to ${version}`, () => {
150150

151151
it('should remove the disabled property from the igx-radio-group', async () => {
152152
appTree.create(
153-
`/testSrc/appPrefix/component/test.component.scss`,
154-
`<igx-radio-group disabled></igx-radio-group>`
155-
);
156-
157-
const tree = await schematicRunner
158-
.runSchematicAsync(migrationName, {}, appTree)
153+
'/testSrc/appPrefix/component/test.component.html', `
154+
<igx-radio-group disabled="true"></igx-radio-group>`);
155+
const tree = await schematicRunner.runSchematicAsync(migrationName, {}, appTree)
159156
.toPromise();
160157

161-
expect(
162-
tree.readContent('/testSrc/appPrefix/component/test.component.scss')
163-
).toEqual(
164-
`<igx-radio-group></igx-radio-group>`
165-
);
158+
expect(tree.readContent('/testSrc/appPrefix/component/test.component.html'))
159+
.toEqual(`
160+
<igx-radio-group></igx-radio-group>`);
166161
});
167162

168163
it('should remove the labelPosition property from the igx-radio-group', async () => {
169164
appTree.create(
170-
`/testSrc/appPrefix/component/test.component.scss`,
171-
`<igx-radio-group labelPosition="before"></igx-radio-group>`
172-
);
173-
174-
const tree = await schematicRunner
175-
.runSchematicAsync(migrationName, {}, appTree)
165+
'/testSrc/appPrefix/component/test.component.html', `
166+
<igx-radio-group labelPosition="before"></igx-radio-group>`);
167+
const tree = await schematicRunner.runSchematicAsync(migrationName, {}, appTree)
176168
.toPromise();
177169

178-
expect(
179-
tree.readContent('/testSrc/appPrefix/component/test.component.scss')
180-
).toEqual(
181-
`<igx-radio-group></igx-radio-group>`
182-
);
170+
expect(tree.readContent('/testSrc/appPrefix/component/test.component.html'))
171+
.toEqual(`
172+
<igx-radio-group></igx-radio-group>`);
183173
});
184174
});

0 commit comments

Comments
 (0)