@@ -71,14 +71,14 @@ describe('PWA Schematic', () => {
7171
7272 it ( 'should create a manifest file' , ( done ) => {
7373 schematicRunner . runSchematicAsync ( 'ng-add' , defaultOptions , appTree ) . toPromise ( ) . then ( tree => {
74- expect ( tree . exists ( '/projects/bar/src/manifest.json ' ) ) . toEqual ( true ) ;
74+ expect ( tree . exists ( '/projects/bar/src/manifest.webmanifest ' ) ) . toEqual ( true ) ;
7575 done ( ) ;
7676 } , done . fail ) ;
7777 } ) ;
7878
7979 it ( 'should set the name & short_name in the manifest file' , ( done ) => {
8080 schematicRunner . runSchematicAsync ( 'ng-add' , defaultOptions , appTree ) . toPromise ( ) . then ( tree => {
81- const manifestText = tree . readContent ( '/projects/bar/src/manifest.json ' ) ;
81+ const manifestText = tree . readContent ( '/projects/bar/src/manifest.webmanifest ' ) ;
8282 const manifest = JSON . parse ( manifestText ) ;
8383
8484 expect ( manifest . name ) . toEqual ( defaultOptions . title ) ;
@@ -90,7 +90,7 @@ describe('PWA Schematic', () => {
9090 it ( 'should set the name & short_name in the manifest file when no title provided' , ( done ) => {
9191 const options = { ...defaultOptions , title : undefined } ;
9292 schematicRunner . runSchematicAsync ( 'ng-add' , options , appTree ) . toPromise ( ) . then ( tree => {
93- const manifestText = tree . readContent ( '/projects/bar/src/manifest.json ' ) ;
93+ const manifestText = tree . readContent ( '/projects/bar/src/manifest.webmanifest ' ) ;
9494 const manifest = JSON . parse ( manifestText ) ;
9595
9696 expect ( manifest . name ) . toEqual ( defaultOptions . project ) ;
@@ -103,7 +103,7 @@ describe('PWA Schematic', () => {
103103 schematicRunner . runSchematicAsync ( 'ng-add' , defaultOptions , appTree ) . toPromise ( ) . then ( tree => {
104104 const content = tree . readContent ( 'projects/bar/src/index.html' ) ;
105105
106- expect ( content ) . toMatch ( / < l i n k r e l = " m a n i f e s t " h r e f = " m a n i f e s t .j s o n " > / ) ;
106+ expect ( content ) . toMatch ( / < l i n k r e l = " m a n i f e s t " h r e f = " m a n i f e s t .w e b m a n i f e s t " > / ) ;
107107 expect ( content ) . toMatch ( / < m e t a n a m e = " t h e m e - c o l o r " c o n t e n t = " # 1 9 7 6 d 2 " > / ) ;
108108 expect ( content )
109109 . toMatch ( / < n o s c r i p t > P l e a s e e n a b l e J a v a S c r i p t t o c o n t i n u e u s i n g t h i s a p p l i c a t i o n .< \/ n o s c r i p t > / ) ;
@@ -118,7 +118,7 @@ describe('PWA Schematic', () => {
118118 schematicRunner . runSchematicAsync ( 'ng-add' , defaultOptions , appTree ) . toPromise ( ) . then ( tree => {
119119 const content = tree . readContent ( 'projects/bar/src/index.html' ) ;
120120
121- expect ( content ) . toMatch ( / < l i n k r e l = " m a n i f e s t " h r e f = " m a n i f e s t .j s o n " > / ) ;
121+ expect ( content ) . toMatch ( / < l i n k r e l = " m a n i f e s t " h r e f = " m a n i f e s t .w e b m a n i f e s t " > / ) ;
122122 expect ( content ) . toMatch ( / < m e t a n a m e = " t h e m e - c o l o r " c o n t e n t = " # 1 9 7 6 d 2 " > / ) ;
123123 expect ( content ) . not
124124 . toMatch ( / < n o s c r i p t > P l e a s e e n a b l e J a v a S c r i p t t o c o n t i n u e u s i n g t h i s a p p l i c a t i o n .< \/ n o s c r i p t > / ) ;
@@ -134,7 +134,7 @@ describe('PWA Schematic', () => {
134134 const targets = config . projects . bar . architect ;
135135
136136 [ 'build' , 'test' ] . forEach ( ( target ) => {
137- expect ( targets [ target ] . options . assets ) . toContain ( 'projects/bar/src/manifest.json ' ) ;
137+ expect ( targets [ target ] . options . assets ) . toContain ( 'projects/bar/src/manifest.webmanifest ' ) ;
138138 } ) ;
139139 done ( ) ;
140140 } , done . fail ) ;
0 commit comments