@@ -277,7 +277,6 @@ describe('Application Schematic', () => {
277277
278278 it ( 'should set values in angular.json correctly' , async ( ) => {
279279 const options = { ...defaultOptions , projectRoot : '' } ;
280-
281280 const tree = await schematicRunner . runSchematic ( 'application' , options , workspaceTree ) ;
282281
283282 const config = JSON . parse ( tree . readContent ( '/angular.json' ) ) ;
@@ -286,12 +285,14 @@ describe('Application Schematic', () => {
286285 const buildOpt = prj . architect . build . options ;
287286 expect ( buildOpt . index ) . toEqual ( 'src/index.html' ) ;
288287 expect ( buildOpt . browser ) . toEqual ( 'src/main.ts' ) ;
288+ expect ( buildOpt . assets ) . toEqual ( [ { 'glob' : '**/*' , 'input' : 'public' } ] ) ;
289289 expect ( buildOpt . polyfills ) . toEqual ( [ 'zone.js' ] ) ;
290290 expect ( buildOpt . tsConfig ) . toEqual ( 'tsconfig.app.json' ) ;
291291
292292 const testOpt = prj . architect . test . options ;
293293 expect ( testOpt . tsConfig ) . toEqual ( 'tsconfig.spec.json' ) ;
294294 expect ( testOpt . karmaConfig ) . toBeUndefined ( ) ;
295+ expect ( testOpt . assets ) . toEqual ( [ { 'glob' : '**/*' , 'input' : 'public' } ] ) ;
295296 expect ( testOpt . styles ) . toEqual ( [ 'src/styles.css' ] ) ;
296297 } ) ;
297298
@@ -377,6 +378,13 @@ describe('Application Schematic', () => {
377378 expect ( buildOpt . browser ) . toEqual ( 'foo/src/main.ts' ) ;
378379 expect ( buildOpt . polyfills ) . toEqual ( [ 'zone.js' ] ) ;
379380 expect ( buildOpt . tsConfig ) . toEqual ( 'foo/tsconfig.app.json' ) ;
381+ expect ( buildOpt . assets ) . toEqual ( [ { 'glob' : '**/*' , 'input' : 'foo/public' } ] ) ;
382+
383+ const testOpt = project . architect . test . options ;
384+ expect ( testOpt . tsConfig ) . toEqual ( 'foo/tsconfig.spec.json' ) ;
385+ expect ( testOpt . karmaConfig ) . toBeUndefined ( ) ;
386+ expect ( testOpt . assets ) . toEqual ( [ { 'glob' : '**/*' , 'input' : 'foo/public' } ] ) ;
387+ expect ( testOpt . styles ) . toEqual ( [ 'foo/src/styles.css' ] ) ;
380388
381389 const appTsConfig = readJsonFile ( tree , '/foo/tsconfig.app.json' ) ;
382390 expect ( appTsConfig . extends ) . toEqual ( '../tsconfig.json' ) ;
0 commit comments