"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/cdk/schematics/ng-generate/drag-drop/index.spec.ts" between
material2-7.3.2.tar.gz and material2-7.3.3.tar.gz

About: material2 offers Material Design components for Angular.

index.spec.ts  (material2-7.3.2):index.spec.ts  (material2-7.3.3)
skipping to change at line 49 skipping to change at line 49
}); });
describe('styleext option', () => { describe('styleext option', () => {
it('should respect the option value', () => { it('should respect the option value', () => {
const tree = runner.runSchematic( const tree = runner.runSchematic(
'drag-drop', {styleext: 'scss', ...baseOptions}, createTestApp(runner) ); 'drag-drop', {styleext: 'scss', ...baseOptions}, createTestApp(runner) );
expect(tree.files).toContain('/projects/material/src/app/foo/foo.component .scss'); expect(tree.files).toContain('/projects/material/src/app/foo/foo.component .scss');
}); });
it('should not generate invalid stylesheets', () => {
const tree = runner.runSchematic(
'drag-drop', {styleext: 'styl', ...baseOptions}, createTestApp(runner)
);
// In this case we expect the schematic to generate a plain "css" file bec
ause
// the component schematics are using CSS style templates which are not co
mpatible
// with all CLI supported styles (e.g. Stylus or Sass)
expect(tree.files).toContain('/projects/material/src/app/foo/foo.component
.css',
'Expected the schematic to generate a plain "css" file.');
expect(tree.files).not.toContain('/projects/material/src/app/foo/foo.compo
nent.styl',
'Expected the schematic to not generate a "stylus" file');
});
it('should fall back to the @schematics/angular:component option value', () => { it('should fall back to the @schematics/angular:component option value', () => {
const tree = runner.runSchematic( const tree = runner.runSchematic(
'drag-drop', baseOptions, createTestApp(runner, {style: 'less'})); 'drag-drop', baseOptions, createTestApp(runner, {style: 'less'}));
expect(tree.files).toContain('/projects/material/src/app/foo/foo.component .less'); expect(tree.files).toContain('/projects/material/src/app/foo/foo.component .less');
}); });
}); });
describe('inlineStyle option', () => { describe('inlineStyle option', () => {
it('should respect the option value', () => { it('should respect the option value', () => {
 End of changes. 1 change blocks. 
0 lines changed or deleted 18 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)