File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed
tests/e2e/tests/build/styles Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change 1
- import { writeMultipleFiles , expectFileToMatch , readFile } from '../../../utils/fs' ;
1
+ import { writeMultipleFiles , expectFileToMatch } from '../../../utils/fs' ;
2
2
import { ng } from '../../../utils/process' ;
3
3
4
4
@@ -12,20 +12,13 @@ export default function() {
12
12
div { box-sizing: border-box }
13
13
` ,
14
14
'src/imported-styles.css' : `
15
- p { background-color: red; }
15
+ p { flex: 1 }
16
16
`
17
17
} )
18
18
. then ( ( ) => ng ( 'build' ) )
19
19
. then ( ( ) => expectFileToMatch ( 'dist/styles.bundle.js' , 'body { background-color: blue; }' ) )
20
20
. then ( ( ) => expectFileToMatch ( 'dist/styles.bundle.js' , 'p { background-color: red; }' ) )
21
- . then ( ( ) => readFile ( 'dist/styles.bundle.js' ) )
22
- . then ( contents => {
23
- console . log ( contents ) ;
24
- return contents ;
25
- } )
26
21
. then ( ( ) => expectFileToMatch (
27
22
'dist/styles.bundle.js' ,
28
- 'div { box-sizing: border-box; ' +
29
- '-moz-box-sizing: border-box; ' +
30
- '-webkit-box-sizing: border-box }' ) ) ;
23
+ 'div { -webkit-box-flex: 1; -ms-flex: 1; flex: 1 }' ) ) ;
31
24
}
You can’t perform that action at this time.
0 commit comments