import { Tree } from '@angular-devkit/schematics';
import { SchematicTestRunner } from '@angular-devkit/schematics/testing';
import * as path from 'path';


const collectionPath = path.join(__dirname, '../collection.json');


describe('<%= dasherize(name) %>', () => {
  it('works', () => {
    const runner = new SchematicTestRunner('schematics', collectionPath);
    const tree = runner.runSchematic('<%= dasherize(name) %>', {}, Tree.empty());

    expect(tree.files).toEqual([]);
  });
});

import { Tree } from '@angular-devkit/schematics';
import { SchematicTestRunner } from '@angular-devkit/schematics/testing';
import * as path from 'path';


const collectionPath = path.join(__dirname, '../collection.json');


describe('<%= dasherize(name) %>', () => {
  it('works', () => {
    const runner = new SchematicTestRunner('schematics', collectionPath);
    const tree = runner.runSchematic('my-schematic', {}, Tree.empty());

    expect(tree.files).toEqual([]);
  });
});

--- 
+++ 
@@ -9,7 +9,7 @@
 describe('<%= dasherize(name) %>', () => {
   it('works', () => {
     const runner = new SchematicTestRunner('schematics', collectionPath);
-    const tree = runner.runSchematic('my-schematic', {}, Tree.empty());
+    const tree = runner.runSchematic('<%= dasherize(name) %>', {}, Tree.empty());
 
     expect(tree.files).toEqual([]);
   });
fix(@schematics/schematics): Fix test in blank schematic project
