@@ -166,6 +166,36 @@ describe('utils', function () {
166
166
} ) ;
167
167
} ) ;
168
168
169
+ describe ( 'isInlinePrecompileBabelPluginRegistered' , function ( ) {
170
+ it ( 'is false when no plugins exist' , function ( ) {
171
+ let plugins = [ ] ;
172
+
173
+ assert . strictEqual ( utils . isInlinePrecompileBabelPluginRegistered ( plugins ) , false ) ;
174
+ } ) ;
175
+
176
+ it ( 'detects when the htmlbars-inline-precompile plugin exists' , function ( ) {
177
+ let plugins = [
178
+ utils . setup ( { } , { requiresModuleApiPolyfill : true , templateCompilerPath : '.' } ) ,
179
+ ] ;
180
+
181
+ assert . strictEqual ( utils . isInlinePrecompileBabelPluginRegistered ( plugins ) , true ) ;
182
+ } ) ;
183
+
184
+ it ( 'detects when the ember-template-compilation plugin exists' , function ( ) {
185
+ let plugins = [
186
+ utils . setup ( { } , { requiresModuleApiPolyfill : false , templateCompilerPath : '.' } ) ,
187
+ ] ;
188
+
189
+ assert . strictEqual ( utils . isInlinePrecompileBabelPluginRegistered ( plugins ) , true ) ;
190
+ } ) ;
191
+
192
+ it ( 'detects when the parallelized plugin exists' , function ( ) {
193
+ let plugins = [ utils . buildParalleizedBabelPlugin ( { } , { } , '' , false , true ) ] ;
194
+
195
+ assert . strictEqual ( utils . isInlinePrecompileBabelPluginRegistered ( plugins ) , true ) ;
196
+ } ) ;
197
+ } ) ;
198
+
169
199
describe ( 'isColocatedBabelPluginRegistered' , function ( ) {
170
200
it ( 'is false when no plugins exist' , function ( ) {
171
201
let plugins = [ ] ;
0 commit comments