@@ -25,7 +25,7 @@ describe('Library Schematic', () => {
25
25
) ;
26
26
const defaultOptions : GenerateLibrarySchema = {
27
27
name : 'foo' ,
28
- entryFile : 'my_index ' ,
28
+ entryFile : 'my-index ' ,
29
29
skipPackageJson : false ,
30
30
skipTsConfig : false ,
31
31
skipInstall : false ,
@@ -51,7 +51,7 @@ describe('Library Schematic', () => {
51
51
'/projects/foo/README.md' ,
52
52
'/projects/foo/tslint.json' ,
53
53
'/projects/foo/src/test.ts' ,
54
- '/projects/foo/src/my_index .ts' ,
54
+ '/projects/foo/src/my-index .ts' ,
55
55
'/projects/foo/src/lib/foo.module.ts' ,
56
56
'/projects/foo/src/lib/foo.component.spec.ts' ,
57
57
'/projects/foo/src/lib/foo.component.ts' ,
@@ -89,15 +89,15 @@ describe('Library Schematic', () => {
89
89
const tree = schematicRunner . runSchematic ( 'library' , defaultOptions , workspaceTree ) ;
90
90
const fileContent = getJsonFileContent ( tree , '/projects/foo/ng-package.json' ) ;
91
91
expect ( fileContent . lib ) . toBeDefined ( ) ;
92
- expect ( fileContent . lib . entryFile ) . toEqual ( 'src/my_index .ts' ) ;
92
+ expect ( fileContent . lib . entryFile ) . toEqual ( 'src/my-index .ts' ) ;
93
93
expect ( fileContent . dest ) . toEqual ( '../../dist/foo' ) ;
94
94
} ) ;
95
95
96
96
it ( 'should use default value for baseDir and entryFile' , ( ) => {
97
97
const tree = schematicRunner . runSchematic ( 'library' , {
98
98
name : 'foobar' ,
99
99
} , workspaceTree ) ;
100
- expect ( tree . files ) . toContain ( '/projects/foobar/src/public_api .ts' ) ;
100
+ expect ( tree . files ) . toContain ( '/projects/foobar/src/public-api .ts' ) ;
101
101
} ) ;
102
102
103
103
it ( `should add library to workspace` , ( ) => {
0 commit comments