@@ -630,10 +630,7 @@ describe('htmlbars-inline-precompile', function () {
630
630
631
631
it ( 'allows AST transform to bind a JS expression' , function ( ) {
632
632
plugins = [
633
- [
634
- HTMLBarsInlinePrecompile ,
635
- { compiler, targetFormat : 'hbs' , transforms : [ expressionTransform ] } ,
636
- ] ,
633
+ [ HTMLBarsInlinePrecompile , { targetFormat : 'hbs' , transforms : [ expressionTransform ] } ] ,
637
634
] ;
638
635
639
636
let transformed = transform ( stripIndent `
@@ -671,9 +668,7 @@ describe('htmlbars-inline-precompile', function () {
671
668
} ) ;
672
669
673
670
it ( 'allows AST transform to bind a JS import' , function ( ) {
674
- plugins = [
675
- [ HTMLBarsInlinePrecompile , { compiler, targetFormat : 'hbs' , transforms : [ importTransform ] } ] ,
676
- ] ;
671
+ plugins = [ [ HTMLBarsInlinePrecompile , { targetFormat : 'hbs' , transforms : [ importTransform ] } ] ] ;
677
672
678
673
let transformed = transform ( stripIndent `
679
674
import { precompileTemplate } from '@ember/template-compilation';
@@ -692,9 +687,7 @@ describe('htmlbars-inline-precompile', function () {
692
687
} ) ;
693
688
694
689
it ( 'does not smash existing js binding for import' , function ( ) {
695
- plugins = [
696
- [ HTMLBarsInlinePrecompile , { compiler, targetFormat : 'hbs' , transforms : [ importTransform ] } ] ,
697
- ] ;
690
+ plugins = [ [ HTMLBarsInlinePrecompile , { targetFormat : 'hbs' , transforms : [ importTransform ] } ] ] ;
698
691
699
692
let transformed = transform ( stripIndent `
700
693
import { precompileTemplate } from '@ember/template-compilation';
@@ -719,9 +712,7 @@ describe('htmlbars-inline-precompile', function () {
719
712
} ) ;
720
713
721
714
it ( 'does not smash existing hbs binding for import' , function ( ) {
722
- plugins = [
723
- [ HTMLBarsInlinePrecompile , { compiler, targetFormat : 'hbs' , transforms : [ importTransform ] } ] ,
724
- ] ;
715
+ plugins = [ [ HTMLBarsInlinePrecompile , { targetFormat : 'hbs' , transforms : [ importTransform ] } ] ] ;
725
716
726
717
let transformed = transform ( stripIndent `
727
718
import { precompileTemplate } from '@ember/template-compilation';
@@ -746,10 +737,7 @@ describe('htmlbars-inline-precompile', function () {
746
737
747
738
it ( 'does not smash existing js binding for expression' , function ( ) {
748
739
plugins = [
749
- [
750
- HTMLBarsInlinePrecompile ,
751
- { compiler, targetFormat : 'hbs' , transforms : [ expressionTransform ] } ,
752
- ] ,
740
+ [ HTMLBarsInlinePrecompile , { targetFormat : 'hbs' , transforms : [ expressionTransform ] } ] ,
753
741
] ;
754
742
755
743
let transformed = transform ( stripIndent `
@@ -775,9 +763,7 @@ describe('htmlbars-inline-precompile', function () {
775
763
} ) ;
776
764
777
765
it ( 'reuses existing imports when possible' , ( ) => {
778
- plugins = [
779
- [ HTMLBarsInlinePrecompile , { compiler, targetFormat : 'hbs' , transforms : [ importTransform ] } ] ,
780
- ] ;
766
+ plugins = [ [ HTMLBarsInlinePrecompile , { targetFormat : 'hbs' , transforms : [ importTransform ] } ] ] ;
781
767
782
768
let transformed = transform ( stripIndent `
783
769
import { precompileTemplate } from '@ember/template-compilation';
@@ -794,9 +780,7 @@ describe('htmlbars-inline-precompile', function () {
794
780
} ) ;
795
781
796
782
it ( 'rebinds existing imports when necessary' , ( ) => {
797
- plugins = [
798
- [ HTMLBarsInlinePrecompile , { compiler, targetFormat : 'hbs' , transforms : [ importTransform ] } ] ,
799
- ] ;
783
+ plugins = [ [ HTMLBarsInlinePrecompile , { targetFormat : 'hbs' , transforms : [ importTransform ] } ] ] ;
800
784
801
785
let transformed = transform ( stripIndent `
802
786
import { precompileTemplate } from '@ember/template-compilation';
@@ -817,10 +801,7 @@ describe('htmlbars-inline-precompile', function () {
817
801
818
802
it ( 'does not smash own newly-created js binding for expression' , function ( ) {
819
803
plugins = [
820
- [
821
- HTMLBarsInlinePrecompile ,
822
- { compiler, targetFormat : 'hbs' , transforms : [ expressionTransform ] } ,
823
- ] ,
804
+ [ HTMLBarsInlinePrecompile , { targetFormat : 'hbs' , transforms : [ expressionTransform ] } ] ,
824
805
] ;
825
806
826
807
let transformed = transform ( stripIndent `
@@ -852,10 +833,7 @@ describe('htmlbars-inline-precompile', function () {
852
833
853
834
it ( 'does not smash existing hbs block binding for expression' , function ( ) {
854
835
plugins = [
855
- [
856
- HTMLBarsInlinePrecompile ,
857
- { compiler, targetFormat : 'hbs' , transforms : [ expressionTransform ] } ,
858
- ] ,
836
+ [ HTMLBarsInlinePrecompile , { targetFormat : 'hbs' , transforms : [ expressionTransform ] } ] ,
859
837
] ;
860
838
861
839
let transformed = transform ( stripIndent `
@@ -880,10 +858,7 @@ describe('htmlbars-inline-precompile', function () {
880
858
881
859
it ( 'does not smash existing hbs element binding for expression' , function ( ) {
882
860
plugins = [
883
- [
884
- HTMLBarsInlinePrecompile ,
885
- { compiler, targetFormat : 'hbs' , transforms : [ expressionTransform ] } ,
886
- ] ,
861
+ [ HTMLBarsInlinePrecompile , { targetFormat : 'hbs' , transforms : [ expressionTransform ] } ] ,
887
862
] ;
888
863
889
864
let transformed = transform ( stripIndent `
@@ -908,10 +883,7 @@ describe('htmlbars-inline-precompile', function () {
908
883
909
884
it ( 'understands that block params are only defined in the body, not the arguments, of an element' , function ( ) {
910
885
plugins = [
911
- [
912
- HTMLBarsInlinePrecompile ,
913
- { compiler, targetFormat : 'hbs' , transforms : [ expressionTransform ] } ,
914
- ] ,
886
+ [ HTMLBarsInlinePrecompile , { targetFormat : 'hbs' , transforms : [ expressionTransform ] } ] ,
915
887
] ;
916
888
917
889
let transformed = transform ( stripIndent `
@@ -936,10 +908,7 @@ describe('htmlbars-inline-precompile', function () {
936
908
937
909
it ( 'does not smash other previously-bound expressions with new ones' , ( ) => {
938
910
plugins = [
939
- [
940
- HTMLBarsInlinePrecompile ,
941
- { compiler, targetFormat : 'hbs' , transforms : [ expressionTransform ] } ,
942
- ] ,
911
+ [ HTMLBarsInlinePrecompile , { targetFormat : 'hbs' , transforms : [ expressionTransform ] } ] ,
943
912
] ;
944
913
945
914
let transformed = transform ( stripIndent `
@@ -981,9 +950,7 @@ describe('htmlbars-inline-precompile', function () {
981
950
} ;
982
951
} ;
983
952
984
- plugins = [
985
- [ HTMLBarsInlinePrecompile , { compiler, targetFormat : 'hbs' , transforms : [ nowTransform ] } ] ,
986
- ] ;
953
+ plugins = [ [ HTMLBarsInlinePrecompile , { targetFormat : 'hbs' , transforms : [ nowTransform ] } ] ] ;
987
954
988
955
let transformed = transform ( stripIndent `
989
956
import { precompileTemplate } from '@ember/template-compilation';
@@ -1014,9 +981,7 @@ describe('htmlbars-inline-precompile', function () {
1014
981
} ;
1015
982
} ;
1016
983
1017
- plugins = [
1018
- [ HTMLBarsInlinePrecompile , { compiler, targetFormat : 'hbs' , transforms : [ compatTransform ] } ] ,
1019
- ] ;
984
+ plugins = [ [ HTMLBarsInlinePrecompile , { targetFormat : 'hbs' , transforms : [ compatTransform ] } ] ] ;
1020
985
1021
986
let transformed = transform ( stripIndent `
1022
987
import { precompileTemplate } from '@ember/template-compilation';
@@ -1043,9 +1008,7 @@ describe('htmlbars-inline-precompile', function () {
1043
1008
} ;
1044
1009
} ;
1045
1010
1046
- plugins = [
1047
- [ HTMLBarsInlinePrecompile , { compiler, targetFormat : 'hbs' , transforms : [ compatTransform ] } ] ,
1048
- ] ;
1011
+ plugins = [ [ HTMLBarsInlinePrecompile , { targetFormat : 'hbs' , transforms : [ compatTransform ] } ] ] ;
1049
1012
1050
1013
let transformed = transform ( stripIndent `
1051
1014
import { precompileTemplate } from '@ember/template-compilation';
@@ -1073,9 +1036,7 @@ describe('htmlbars-inline-precompile', function () {
1073
1036
} ;
1074
1037
1075
1038
it ( 'can run an ast transform inside precompileTemplate' , function ( ) {
1076
- plugins = [
1077
- [ HTMLBarsInlinePrecompile , { compiler, targetFormat : 'hbs' , transforms : [ color ] } ] ,
1078
- ] ;
1039
+ plugins = [ [ HTMLBarsInlinePrecompile , { targetFormat : 'hbs' , transforms : [ color ] } ] ] ;
1079
1040
1080
1041
let transformed = transform ( stripIndent `
1081
1042
import { precompileTemplate } from '@ember/template-compilation';
@@ -1113,10 +1074,7 @@ describe('htmlbars-inline-precompile', function () {
1113
1074
1114
1075
it ( 'can create the options object for precompileTemplate' , function ( ) {
1115
1076
plugins = [
1116
- [
1117
- HTMLBarsInlinePrecompile ,
1118
- { compiler, targetFormat : 'hbs' , transforms : [ expressionTransform ] } ,
1119
- ] ,
1077
+ [ HTMLBarsInlinePrecompile , { targetFormat : 'hbs' , transforms : [ expressionTransform ] } ] ,
1120
1078
] ;
1121
1079
1122
1080
let transformed = transform ( stripIndent `
@@ -1137,10 +1095,7 @@ describe('htmlbars-inline-precompile', function () {
1137
1095
1138
1096
it ( 'adds scope to existing options object' , function ( ) {
1139
1097
plugins = [
1140
- [
1141
- HTMLBarsInlinePrecompile ,
1142
- { compiler, targetFormat : 'hbs' , transforms : [ expressionTransform ] } ,
1143
- ] ,
1098
+ [ HTMLBarsInlinePrecompile , { targetFormat : 'hbs' , transforms : [ expressionTransform ] } ] ,
1144
1099
] ;
1145
1100
1146
1101
let transformed = transform ( stripIndent `
@@ -1166,10 +1121,7 @@ describe('htmlbars-inline-precompile', function () {
1166
1121
1167
1122
it ( 'adds new locals to preexisting scope' , function ( ) {
1168
1123
plugins = [
1169
- [
1170
- HTMLBarsInlinePrecompile ,
1171
- { compiler, targetFormat : 'hbs' , transforms : [ expressionTransform ] } ,
1172
- ] ,
1124
+ [ HTMLBarsInlinePrecompile , { targetFormat : 'hbs' , transforms : [ expressionTransform ] } ] ,
1173
1125
] ;
1174
1126
1175
1127
let transformed = transform ( stripIndent `
@@ -1197,10 +1149,7 @@ describe('htmlbars-inline-precompile', function () {
1197
1149
1198
1150
it ( 'adds new locals to preexisting renamed scope' , function ( ) {
1199
1151
plugins = [
1200
- [
1201
- HTMLBarsInlinePrecompile ,
1202
- { compiler, targetFormat : 'hbs' , transforms : [ expressionTransform ] } ,
1203
- ] ,
1152
+ [ HTMLBarsInlinePrecompile , { targetFormat : 'hbs' , transforms : [ expressionTransform ] } ] ,
1204
1153
] ;
1205
1154
1206
1155
let transformed = transform ( stripIndent `
@@ -1292,7 +1241,6 @@ describe('htmlbars-inline-precompile', function () {
1292
1241
[
1293
1242
HTMLBarsInlinePrecompile ,
1294
1243
{
1295
- compiler,
1296
1244
targetFormat : 'hbs' ,
1297
1245
transforms : [ expressionTransform ] ,
1298
1246
enableLegacyModules : [ 'ember-cli-htmlbars' ] ,
@@ -1318,7 +1266,7 @@ describe('htmlbars-inline-precompile', function () {
1318
1266
} ) ;
1319
1267
1320
1268
it ( 'leaves html entities unchanged when there are no transforms' , function ( ) {
1321
- plugins = [ [ HTMLBarsInlinePrecompile , { compiler , targetFormat : 'hbs' , transforms : [ ] } ] ] ;
1269
+ plugins = [ [ HTMLBarsInlinePrecompile , { targetFormat : 'hbs' , transforms : [ ] } ] ] ;
1322
1270
1323
1271
let transformed = transform ( stripIndent `
1324
1272
import { precompileTemplate } from '@ember/template-compilation';
@@ -1336,7 +1284,6 @@ describe('htmlbars-inline-precompile', function () {
1336
1284
[
1337
1285
HTMLBarsInlinePrecompile ,
1338
1286
{
1339
- compiler,
1340
1287
targetFormat : 'hbs' ,
1341
1288
transforms : [ color ] ,
1342
1289
} ,
@@ -1363,7 +1310,6 @@ describe('htmlbars-inline-precompile', function () {
1363
1310
[
1364
1311
HTMLBarsInlinePrecompile ,
1365
1312
{
1366
- compiler,
1367
1313
targetFormat : 'hbs' ,
1368
1314
transforms : [ color ] ,
1369
1315
} ,
@@ -1402,7 +1348,6 @@ describe('htmlbars-inline-precompile', function () {
1402
1348
[
1403
1349
HTMLBarsInlinePrecompile ,
1404
1350
{
1405
- compiler,
1406
1351
targetFormat : 'hbs' ,
1407
1352
transforms : [ color ] ,
1408
1353
} ,
@@ -1437,7 +1382,6 @@ describe('htmlbars-inline-precompile', function () {
1437
1382
[
1438
1383
HTMLBarsInlinePrecompile ,
1439
1384
{
1440
- compiler,
1441
1385
targetFormat : 'hbs' ,
1442
1386
transforms : [ ] ,
1443
1387
} ,
@@ -1465,7 +1409,6 @@ describe('htmlbars-inline-precompile', function () {
1465
1409
[
1466
1410
HTMLBarsInlinePrecompile ,
1467
1411
{
1468
- compiler,
1469
1412
targetFormat : 'hbs' ,
1470
1413
transforms : [ expressionTransform ] ,
1471
1414
enableLegacyModules : [ 'ember-cli-htmlbars' ] ,
0 commit comments