test: remove now duplicate test

This commit is contained in:
Alan 2019-02-27 08:19:11 +01:00 committed by Hans
parent 08c4cb748f
commit 1fcb9a09f9

View File

@ -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');