1- import * as assert from 'assert' ;
2- import * as path from 'path' ;
1+ import assert from 'assert' ;
2+ import path from 'path' ;
33import {
44 SchematicTestRunner ,
55 UnitTestTree
@@ -36,7 +36,7 @@ const runner = new SchematicTestRunner('schematics', collectionPath);
3636
3737let appTree : UnitTestTree ;
3838
39- describe ( 'Model Schematic' , ( ) => {
39+ describe ( 'Schematic: Model ' , ( ) => {
4040 beforeEach ( ( ) => {
4141 appTree = runner . runExternalSchematic (
4242 '@schematics/angular' ,
@@ -114,7 +114,7 @@ describe('Model Schematic', () => {
114114 const content = tree . readContent (
115115 '/projects/bar/src/app/foo/foo.service.ts'
116116 ) ;
117- assert ( content . includes ( " providedIn: 'root'" ) ) ;
117+ assert ( content . includes ( ` providedIn: 'root'` ) ) ;
118118 } ) ;
119119
120120 it ( 'should not be tree-shakeable if module is set' , ( ) => {
@@ -124,7 +124,7 @@ describe('Model Schematic', () => {
124124 const content = tree . readContent (
125125 '/projects/bar/src/app/foo/foo.service.ts'
126126 ) ;
127- assert ( ! content . includes ( " providedIn: 'root'" ) ) ;
127+ assert ( ! content . includes ( ` providedIn: 'root'` ) ) ;
128128 } ) ;
129129
130130 it ( 'should create model interface' , ( ) => {
@@ -152,15 +152,15 @@ describe('Model Schematic', () => {
152152
153153 const tree = runner . runSchematic ( 'model' , options , appTree ) ;
154154 const content = tree . readContent ( '/projects/bar/src/app/app.module.ts' ) ;
155- assert ( ! content . includes ( " import { FooService } from './foo/foo.service'" ) ) ;
155+ assert ( ! content . includes ( ` import { FooService } from './foo/foo.service'` ) ) ;
156156 } ) ;
157157
158158 it ( 'should import into a specified module' , ( ) => {
159159 const options = { ...defaultOptions , module : 'app.module.ts' } ;
160160
161161 const tree = runner . runSchematic ( 'model' , options , appTree ) ;
162162 const content = tree . readContent ( '/projects/bar/src/app/app.module.ts' ) ;
163- assert ( content . includes ( " import { FooService } from './foo/foo.service'" ) ) ;
163+ assert ( content . includes ( ` import { FooService } from './foo/foo.service'` ) ) ;
164164 } ) ;
165165
166166 it ( 'should fail if specified module does not exist' , ( ) => {
0 commit comments