mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-16 10:33:43 +08:00
test: remove now duplicate test
This commit is contained in:
parent
08c4cb748f
commit
1fcb9a09f9
@ -250,15 +250,6 @@ describe('Component Schematic', () => {
|
||||
});
|
||||
|
||||
it('should respect the style option', () => {
|
||||
const options = { ...defaultOptions, style: Style.Scss };
|
||||
const tree = schematicRunner.runSchematic('component', options, appTree);
|
||||
const content = tree.readContent('/projects/bar/src/app/foo/foo.component.ts');
|
||||
expect(content).toMatch(/styleUrls: \['.\/foo.component.scss/);
|
||||
expect(tree.files).toContain('/projects/bar/src/app/foo/foo.component.scss');
|
||||
expect(tree.files).not.toContain('/projects/bar/src/app/foo/foo.component.css');
|
||||
});
|
||||
|
||||
it('should respect the style preprocessor option', () => {
|
||||
const options = { ...defaultOptions, style: Style.Sass };
|
||||
const tree = schematicRunner.runSchematic('component', options, appTree);
|
||||
const content = tree.readContent('/projects/bar/src/app/foo/foo.component.ts');
|
||||
|
Loading…
x
Reference in New Issue
Block a user