@@ -20,7 +20,7 @@ describe("Broccoli Plugin Test", function() {
20
20
assert . ok ( 1 ) ;
21
21
} ) ;
22
22
23
- it ( "outputs CSS file" , async ( ) => {
23
+ it ( "outputs CSS file and populates transport object " , async ( ) => {
24
24
const entryComponentName = "Chrisrng" ;
25
25
26
26
input . write ( {
@@ -46,18 +46,25 @@ describe("Broccoli Plugin Test", function() {
46
46
} ) ;
47
47
48
48
let analyzer = new GlimmerAnalyzer ( input . path ( ) ) ;
49
+ let transport = { } ;
49
50
50
51
let compiler = new BroccoliCSSBlocks ( input . path ( ) , {
51
52
entry : [ entryComponentName ] ,
52
53
output : "src/ui/styles/css-blocks.css" ,
53
- transport : { } ,
54
+ transport,
54
55
analyzer,
55
56
} ) ;
56
57
57
58
let output = await buildOutput ( compiler ) ;
58
59
let files = output . read ( ) ;
59
60
60
- assert . ok ( files [ "src" ] ! [ "ui" ] [ "styles" ] [ "css-blocks.css" ] ) ;
61
+ assert . ok ( Object . keys ( transport ) . length , "Transport Object populated" ) ;
62
+ assert . ok ( transport [ "mapping" ] , "Mapping property is populated in Transport Object" ) ;
63
+ assert . ok ( transport [ "blocks" ] , "Blocks property is populated in Transport Object" ) ;
64
+ assert . ok ( transport [ "analyzer" ] , "Analyzer property is populated in Transport Object" ) ;
65
+ assert . ok ( transport [ "css" ] , "CSS property is populated in Transport Object" ) ;
66
+
67
+ assert . ok ( files [ "src" ] ! [ "ui" ] [ "styles" ] [ "css-blocks.css" ] , "CSS File generated" ) ;
61
68
} ) ;
62
69
} ) ;
63
70
} ) ;
0 commit comments