Skip to content

Commit 2fe98f8

Browse files
clydinBrocco
authored andcommitted
test(@angular/cli): improve third-party bootstrap styles test
1 parent 88b7f5f commit 2fe98f8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/e2e/tests/third-party/bootstrap.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,19 @@ export default function() {
2323
<script type="text/javascript" src="scripts.bundle.js"></script>
2424
<script type="text/javascript" src="vendor.bundle.js"></script>
2525
<script type="text/javascript" src="main.bundle.js"></script>
26+
`))
27+
.then(() => ng(
28+
'build',
29+
'--prod',
30+
'--extract-css',
31+
'--output-hashing=none'
32+
))
33+
.then(() => expectFileToMatch('dist/scripts.bundle.js', 'jQuery'))
34+
.then(() => expectFileToMatch('dist/styles.bundle.css', '* Bootstrap'))
35+
.then(() => expectFileToMatch('dist/index.html', oneLineTrim`
36+
<script type="text/javascript" src="inline.bundle.js"></script>
37+
<script type="text/javascript" src="polyfills.bundle.js"></script>
38+
<script type="text/javascript" src="scripts.bundle.js"></script>
39+
<script type="text/javascript" src="main.bundle.js"></script>
2640
`));
2741
}

0 commit comments

Comments
 (0)