@@ -71,14 +71,14 @@ describe('PWA Schematic', () => {
71
71
72
72
it ( 'should create a manifest file' , ( done ) => {
73
73
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 ) ;
75
75
done ( ) ;
76
76
} , done . fail ) ;
77
77
} ) ;
78
78
79
79
it ( 'should set the name & short_name in the manifest file' , ( done ) => {
80
80
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 ' ) ;
82
82
const manifest = JSON . parse ( manifestText ) ;
83
83
84
84
expect ( manifest . name ) . toEqual ( defaultOptions . title ) ;
@@ -90,7 +90,7 @@ describe('PWA Schematic', () => {
90
90
it ( 'should set the name & short_name in the manifest file when no title provided' , ( done ) => {
91
91
const options = { ...defaultOptions , title : undefined } ;
92
92
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 ' ) ;
94
94
const manifest = JSON . parse ( manifestText ) ;
95
95
96
96
expect ( manifest . name ) . toEqual ( defaultOptions . project ) ;
@@ -103,7 +103,7 @@ describe('PWA Schematic', () => {
103
103
schematicRunner . runSchematicAsync ( 'ng-add' , defaultOptions , appTree ) . toPromise ( ) . then ( tree => {
104
104
const content = tree . readContent ( 'projects/bar/src/index.html' ) ;
105
105
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 " > / ) ;
107
107
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 " > / ) ;
108
108
expect ( content )
109
109
. 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', () => {
118
118
schematicRunner . runSchematicAsync ( 'ng-add' , defaultOptions , appTree ) . toPromise ( ) . then ( tree => {
119
119
const content = tree . readContent ( 'projects/bar/src/index.html' ) ;
120
120
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 " > / ) ;
122
122
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 " > / ) ;
123
123
expect ( content ) . not
124
124
. 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', () => {
134
134
const targets = config . projects . bar . architect ;
135
135
136
136
[ '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 ' ) ;
138
138
} ) ;
139
139
done ( ) ;
140
140
} , done . fail ) ;
0 commit comments