forked from angular/angular-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpolyfills.ts
More file actions
18 lines (16 loc) · 760 Bytes
/
polyfills.ts
File metadata and controls
18 lines (16 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { expectFileToMatch } from '../../utils/fs';
import { ng } from '../../utils/process';
import { oneLineTrim } from 'common-tags';
export default function () {
// TODO(architect): Delete this test. It is now in devkit/build-angular.
return Promise.resolve()
.then(() => ng('build'))
// files were created successfully
.then(() => expectFileToMatch('dist/test-project/polyfills.js', 'core-js'))
.then(() => expectFileToMatch('dist/test-project/polyfills.js', 'zone.js'))
// index.html lists the right bundles
.then(() => expectFileToMatch('dist/test-project/index.html', oneLineTrim`
<script type="text/javascript" src="runtime.js"></script>
<script type="text/javascript" src="polyfills.js"></script>
`));
}