@@ -36,7 +36,7 @@ describe("generating package.json", function () {
3636 it ( "contains a schema version" , function ( ) {
3737 let pkg = fs . readJSONSync ( "dist/package.json" ) ;
3838
39- expect ( pkg . fastboot . schemaVersion ) . to . deep . equal ( 3 ) ;
39+ expect ( pkg . fastboot . schemaVersion ) . to . deep . equal ( 5 ) ;
4040 } ) ;
4141
4242 it ( "contains a whitelist of allowed module names" , function ( ) {
@@ -54,25 +54,6 @@ describe("generating package.json", function () {
5454 ] ) ;
5555 } ) ;
5656
57- it ( "contains a manifest of FastBoot assets" , function ( ) {
58- let pkg = fs . readJSONSync ( "dist/package.json" ) ;
59-
60- expect ( pkg . fastboot . manifest ) . to . deep . equal ( {
61- appFiles : [
62- "assets/basic-app.js" ,
63- "assets/basic-app-fastboot.js" ,
64- "example-addon/bar.js" ,
65- ] ,
66- htmlFile : "index.html" ,
67- vendorFiles : [
68- "example-addon/foo.js" ,
69- "assets/vendor.js" ,
70- "assets/auto-import-fastboot.js" ,
71- "ember-fetch/fetch-fastboot.js" ,
72- ] ,
73- } ) ;
74- } ) ;
75-
7657 it ( "contains a list of whitelisted hosts from environment.js" , function ( ) {
7758 let pkg = fs . readJSONSync ( "dist/package.json" ) ;
7859
@@ -86,7 +67,7 @@ describe("generating package.json", function () {
8667 it ( "contains app name" , function ( ) {
8768 let pkg = fs . readJSONSync ( "dist/package.json" ) ;
8869
89- expect ( pkg . fastboot . appName ) . to . equal ( "basic-app" ) ;
70+ expect ( pkg . name ) . to . equal ( "basic-app" ) ;
9071 } ) ;
9172
9273 it ( "contains the application config" , function ( ) {
@@ -132,28 +113,5 @@ describe("generating package.json", function () {
132113
133114 expect ( pkg . fastboot . config [ "foo" ] ) . to . equal ( "bar" ) ;
134115 } ) ;
135-
136- } ) ;
137-
138- describe ( "with production FastBoot builds" , function ( ) {
139- before ( async function ( ) {
140- await execa ( "yarn" , [ "build" , "--environment=production" ] ) ;
141- } ) ;
142-
143- it ( "contains a manifest of FastBoot assets" , function ( ) {
144- let pkg = fs . readJSONSync ( "dist/package.json" ) ;
145-
146- let manifest = pkg . fastboot . manifest ;
147-
148- manifest . appFiles . forEach ( ( file ) => {
149- expect ( `dist/${ file } ` ) . to . be . a . file ( ) ;
150- } ) ;
151-
152- expect ( `dist/${ manifest . htmlFile } ` ) . to . be . a . file ( ) ;
153-
154- manifest . vendorFiles . forEach ( ( file ) => {
155- expect ( `dist/${ file } ` ) . to . be . a . file ( ) ;
156- } ) ;
157- } ) ;
158116 } ) ;
159117} ) ;
0 commit comments