@@ -71,7 +71,7 @@ describe("get-babel-options", function () {
71
71
expect (
72
72
_addDecoratorPlugins ( [ ] , { } , { } , this . addon . parent , this . addon . project )
73
73
. length
74
- ) . to . equal ( 4 , "plugins added correctly" ) ;
74
+ ) . to . equal ( 5 , "plugins added correctly" ) ;
75
75
} ) ;
76
76
77
77
it ( "should include only fields if it detects decorators plugin" , function ( ) {
@@ -91,7 +91,7 @@ describe("get-babel-options", function () {
91
91
this . addon . parent ,
92
92
this . addon . project
93
93
) . length
94
- ) . to . equal ( 4 , "plugins were not added" ) ;
94
+ ) . to . equal ( 5 , "plugins were not added" ) ;
95
95
} ) ;
96
96
97
97
it ( "should include only decorators if it detects class fields plugin" , function ( ) {
@@ -111,7 +111,7 @@ describe("get-babel-options", function () {
111
111
this . addon . parent ,
112
112
this . addon . project
113
113
) . length
114
- ) . to . equal ( 2 , "plugins were not added" ) ;
114
+ ) . to . equal ( 3 , "plugins were not added" ) ;
115
115
} ) ;
116
116
117
117
it ( "should use babel options loose mode for class properties" , function ( ) {
@@ -157,7 +157,7 @@ describe("get-babel-options", function () {
157
157
"@babel/plugin-transform-typescript" ,
158
158
"typescript still first"
159
159
) ;
160
- expect ( plugins . length ) . to . equal ( 5 , "class fields and decorators added" ) ;
160
+ expect ( plugins . length ) . to . equal ( 6 , "class fields and decorators added" ) ;
161
161
} ) ;
162
162
163
163
it ( "should include class fields and decorators before typescript if not handling typescript" , function ( ) {
@@ -172,8 +172,8 @@ describe("get-babel-options", function () {
172
172
this . addon . project
173
173
) ;
174
174
175
- expect ( plugins . length ) . to . equal ( 5 , "class fields and decorators added" ) ;
176
- expect ( plugins [ 4 ] ) . to . equal (
175
+ expect ( plugins . length ) . to . equal ( 6 , "class fields and decorators added" ) ;
176
+ expect ( plugins [ 5 ] ) . to . equal (
177
177
"@babel/plugin-transform-typescript" ,
178
178
"typescript is now last"
179
179
) ;
0 commit comments