@@ -45,7 +45,7 @@ describe('generating package.json', function() {
4545 it ( "contains a schema version" , function ( ) {
4646 var pkg = fs . readJsonSync ( app . filePath ( '/dist/package.json' ) ) ;
4747
48- expect ( pkg . fastboot . schemaVersion ) . to . deep . equal ( 1 ) ;
48+ expect ( pkg . fastboot . schemaVersion ) . to . deep . equal ( 2 ) ;
4949 } ) ;
5050
5151 it ( "contains a whitelist of allowed module names" , function ( ) {
@@ -64,9 +64,9 @@ describe('generating package.json', function() {
6464 var pkg = fs . readJsonSync ( app . filePath ( '/dist/package.json' ) ) ;
6565
6666 expect ( pkg . fastboot . manifest ) . to . deep . equal ( {
67- appFile : 'fastboot/module-whitelist.js' ,
67+ appFiles : [ 'fastboot/module-whitelist.js' ] ,
6868 htmlFile : 'index.html' ,
69- vendorFile : 'fastboot/vendor.js'
69+ vendorFiles : [ 'fastboot/vendor.js' ]
7070 } ) ;
7171 } ) ;
7272
@@ -114,9 +114,13 @@ describe('generating package.json', function() {
114114
115115 var manifest = pkg . fastboot . manifest ;
116116
117- expect ( p ( manifest . appFile ) ) . to . be . a . file ( ) ;
117+ manifest . appFiles . forEach ( function ( file ) {
118+ expect ( p ( file ) ) . to . be . a . file ( ) ;
119+ } ) ;
118120 expect ( p ( manifest . htmlFile ) ) . to . be . a . file ( ) ;
119- expect ( p ( manifest . vendorFile ) ) . to . be . a . file ( ) ;
121+ manifest . vendorFiles . forEach ( function ( file ) {
122+ expect ( p ( file ) ) . to . be . a . file ( ) ;
123+ } ) ;
120124 } ) ;
121125 } ) ;
122126
@@ -141,9 +145,13 @@ describe('generating package.json', function() {
141145 var pkg = fs . readJsonSync ( customApp . filePath ( '/dist/package.json' ) ) ;
142146 var manifest = pkg . fastboot . manifest ;
143147
144- expect ( p ( manifest . appFile ) ) . to . be . a . file ( ) ;
148+ manifest . appFiles . forEach ( function ( file ) {
149+ expect ( p ( file ) ) . to . be . a . file ( ) ;
150+ } ) ;
145151 expect ( p ( manifest . htmlFile ) ) . to . be . a . file ( ) ;
146- expect ( p ( manifest . vendorFile ) ) . to . be . a . file ( ) ;
152+ manifest . vendorFiles . forEach ( function ( file ) {
153+ expect ( p ( file ) ) . to . be . a . file ( ) ;
154+ } ) ;
147155 } ) ;
148156
149157 } ) ;
@@ -168,9 +176,13 @@ describe('generating package.json', function() {
168176 var pkg = fs . readJsonSync ( customApp . filePath ( '/dist/package.json' ) ) ;
169177 var manifest = pkg . fastboot . manifest ;
170178
171- expect ( p ( manifest . appFile ) ) . to . be . a . file ( ) ;
179+ manifest . appFiles . forEach ( function ( file ) {
180+ expect ( p ( file ) ) . to . be . a . file ( ) ;
181+ } ) ;
172182 expect ( p ( manifest . htmlFile ) ) . to . be . a . file ( ) ;
173- expect ( p ( manifest . vendorFile ) ) . to . be . a . file ( ) ;
183+ manifest . vendorFiles . forEach ( function ( file ) {
184+ expect ( p ( file ) ) . to . be . a . file ( ) ;
185+ } ) ;
174186 } ) ;
175187
176188 } ) ;
0 commit comments