@@ -8,9 +8,6 @@ import { ng } from '../../../utils/process';
88import { updateJsonFile } from '../../../utils/project' ;
99
1010export default function ( ) {
11- // TODO(architect): The compat layer doesn't yet process `includePaths`.
12- return ;
13-
1411 return Promise . resolve ( )
1512 . then ( ( ) => createDir ( 'src/style-paths' ) )
1613 . then ( ( ) => writeMultipleFiles ( {
@@ -62,16 +59,16 @@ export default function () {
6259 // files were created successfully
6360 . then ( ( ) => ng ( 'build' , '--extract-css' ) )
6461 . then ( ( ) => expectFileToMatch ( 'dist/test-project/styles.css' , / h 1 \s * { \s * c o l o r : r e d ; \s * } / ) )
65- . then ( ( ) => expectFileToMatch ( 'dist/test-project/main.js' , / h 2 .* { .* c o l o r : r e d ; .* } / ) )
62+ . then ( ( ) => expectFileToMatch ( 'dist/test-project/main-es2015 .js' , / h 2 .* { .* c o l o r : r e d ; .* } / ) )
6663 . then ( ( ) => expectFileToMatch ( 'dist/test-project/styles.css' , / h 3 \s * { \s * c o l o r : # 0 0 8 0 0 0 ; \s * } / ) )
67- . then ( ( ) => expectFileToMatch ( 'dist/test-project/main.js' , / h 4 .* { .* c o l o r : # 0 0 8 0 0 0 ; .* } / ) )
64+ . then ( ( ) => expectFileToMatch ( 'dist/test-project/main-es2015 .js' , / h 4 .* { .* c o l o r : # 0 0 8 0 0 0 ; .* } / ) )
6865 . then ( ( ) => expectFileToMatch ( 'dist/test-project/styles.css' , / h 5 \s * { \s * c o l o r : # A D D A D D ; \s * } / ) )
69- . then ( ( ) => expectFileToMatch ( 'dist/test-project/main.js' , / h 6 .* { .* c o l o r : # A D D A D D ; .* } / ) )
66+ . then ( ( ) => expectFileToMatch ( 'dist/test-project/main-es2015 .js' , / h 6 .* { .* c o l o r : # A D D A D D ; .* } / ) )
7067 . then ( ( ) => ng ( 'build' , '--extract-css' , '--aot' ) )
7168 . then ( ( ) => expectFileToMatch ( 'dist/test-project/styles.css' , / h 1 \s * { \s * c o l o r : r e d ; \s * } / ) )
72- . then ( ( ) => expectFileToMatch ( 'dist/test-project/main.js' , / h 2 .* { .* c o l o r : r e d ; .* } / ) )
69+ . then ( ( ) => expectFileToMatch ( 'dist/test-project/main-es5 .js' , / h 2 .* { .* c o l o r : r e d ; .* } / ) )
7370 . then ( ( ) => expectFileToMatch ( 'dist/test-project/styles.css' , / h 3 \s * { \s * c o l o r : # 0 0 8 0 0 0 ; \s * } / ) )
74- . then ( ( ) => expectFileToMatch ( 'dist/test-project/main.js' , / h 4 .* { .* c o l o r : # 0 0 8 0 0 0 ; .* } / ) )
71+ . then ( ( ) => expectFileToMatch ( 'dist/test-project/main-es5 .js' , / h 4 .* { .* c o l o r : # 0 0 8 0 0 0 ; .* } / ) )
7572 . then ( ( ) => expectFileToMatch ( 'dist/test-project/styles.css' , / h 5 \s * { \s * c o l o r : # A D D A D D ; \s * } / ) )
76- . then ( ( ) => expectFileToMatch ( 'dist/test-project/main.js' , / h 6 .* { .* c o l o r : # A D D A D D ; .* } / ) ) ;
73+ . then ( ( ) => expectFileToMatch ( 'dist/test-project/main-es5 .js' , / h 6 .* { .* c o l o r : # A D D A D D ; .* } / ) ) ;
7774}
0 commit comments