@@ -33,8 +33,8 @@ export default async function() {
33
33
await expectFileToMatch ( `${ outputPath } /main-es2015.js` , lang ) ;
34
34
35
35
// Verify the locale data is registered using the global files
36
- // await expectFileToMatch(`${outputPath}/main-es5.js`, '.ng.common.locales');
37
- // await expectFileToMatch(`${outputPath}/main-es2015.js`, '.ng.common.locales');
36
+ await expectFileToMatch ( `${ outputPath } /main-es5.js` , '.ng.common.locales' ) ;
37
+ await expectFileToMatch ( `${ outputPath } /main-es2015.js` , '.ng.common.locales' ) ;
38
38
39
39
// Execute Application E2E tests with dev server
40
40
await ng ( 'e2e' , `--configuration=${ lang } ` , '--port=0' ) ;
@@ -49,9 +49,9 @@ export default async function() {
49
49
}
50
50
51
51
// Verify deprecated locale data registration is not present
52
- // await ng('build', '--configuration=fr', '--optimization=false');
53
- // await expectToFail(() => expectFileToMatch(`${baseDir}/fr/main-es5.js`, 'registerLocaleData('));
54
- // await expectToFail(() => expectFileToMatch(`${baseDir}/fr/main-es2015.js`, 'registerLocaleData('));
52
+ await ng ( 'build' , '--configuration=fr' , '--optimization=false' ) ;
53
+ await expectToFail ( ( ) => expectFileToMatch ( `${ baseDir } /fr/main-es5.js` , 'registerLocaleData(' ) ) ;
54
+ await expectToFail ( ( ) => expectFileToMatch ( `${ baseDir } /fr/main-es2015.js` , 'registerLocaleData(' ) ) ;
55
55
56
56
// Verify missing translation behaviour.
57
57
await appendToFile ( 'src/app/app.component.html' , '<p i18n>Other content</p>' ) ;
0 commit comments