@@ -9,11 +9,11 @@ function createTests(options) {
9
9
const presets = options . presets ;
10
10
const transform = options . transform ;
11
11
12
- afterEach ( function ( ) {
12
+ afterEach ( function ( ) {
13
13
Object . assign ( console , CONSOLE ) ;
14
14
} ) ;
15
15
16
- describe ( 'Feature Flags' , function ( ) {
16
+ describe ( 'Feature Flags' , function ( ) {
17
17
const h = transformTestHelper ( {
18
18
presets,
19
19
plugins : [
@@ -51,7 +51,7 @@ function createTests(options) {
51
51
) ;
52
52
} ) ;
53
53
54
- describe ( 'Debug Macros' , function ( ) {
54
+ describe ( 'Debug Macros' , function ( ) {
55
55
let h = transformTestHelper ( {
56
56
presets,
57
57
plugins : [
@@ -80,7 +80,7 @@ function createTests(options) {
80
80
h . generateTest ( 'log-expansion' ) ;
81
81
} ) ;
82
82
83
- describe ( 'Debug macros idempotnency' , function ( ) {
83
+ describe ( 'Debug macros idempotnency' , function ( ) {
84
84
let h = transformTestHelper ( {
85
85
presets,
86
86
plugins : [ [ DebugToolsPlugin ] ] ,
@@ -89,7 +89,7 @@ function createTests(options) {
89
89
h . generateTest ( 'missing-debug-tools-options' ) ;
90
90
} ) ;
91
91
92
- describe ( 'foreign debug imports' , function ( ) {
92
+ describe ( 'foreign debug imports' , function ( ) {
93
93
let h = transformTestHelper ( {
94
94
presets,
95
95
plugins : [
@@ -109,7 +109,7 @@ function createTests(options) {
109
109
] ,
110
110
111
111
[
112
- function ( babel ) {
112
+ function ( babel ) {
113
113
let t = babel . types ;
114
114
115
115
return {
@@ -118,7 +118,7 @@ function createTests(options) {
118
118
ImportSpecifier ( path ) {
119
119
let importedName = path . node . imported . name ;
120
120
if ( importedName === 'inspect' ) {
121
- let importDeclarationPath = path . findParent ( p => p . isImportDeclaration ( ) ) ;
121
+ let importDeclarationPath = path . findParent ( ( p ) => p . isImportDeclaration ( ) ) ;
122
122
let binding = path . scope . getBinding ( importedName ) ;
123
123
let references = binding . referencePaths ;
124
124
@@ -148,7 +148,7 @@ function createTests(options) {
148
148
h . generateTest ( 'shared-debug-module' ) ;
149
149
} ) ;
150
150
151
- describe ( 'Global External Test Helpers' , function ( ) {
151
+ describe ( 'Global External Test Helpers' , function ( ) {
152
152
let h = transformTestHelper ( {
153
153
presets,
154
154
plugins : [
@@ -171,11 +171,11 @@ function createTests(options) {
171
171
h . generateTest ( 'global-external-helpers' ) ;
172
172
} ) ;
173
173
174
- describe ( 'ember-cli-babel configuration' , function ( ) {
175
- describe ( 'Ember < 3.27' , function ( ) {
176
- describe ( 'legacy config API' , function ( ) {
177
- beforeEach ( function ( ) {
178
- console . warn = ( ) => { } ; // eslint-disable-line
174
+ describe ( 'ember-cli-babel configuration' , function ( ) {
175
+ describe ( 'Ember < 3.27' , function ( ) {
176
+ describe ( 'legacy config API' , function ( ) {
177
+ beforeEach ( function ( ) {
178
+ console . warn = ( ) => { } ;
179
179
} ) ;
180
180
181
181
let h = transformTestHelper ( {
@@ -206,7 +206,7 @@ function createTests(options) {
206
206
h . generateTest ( 'ember-cli-babel-config-pre-3-27' ) ;
207
207
} ) ;
208
208
209
- describe ( 'default configuration' , function ( ) {
209
+ describe ( 'default configuration' , function ( ) {
210
210
let h = transformTestHelper ( {
211
211
presets,
212
212
plugins : [
@@ -231,8 +231,8 @@ function createTests(options) {
231
231
} ) ;
232
232
} ) ;
233
233
234
- describe ( 'Ember >= 3.27' , function ( ) {
235
- describe ( 'default configuration' , function ( ) {
234
+ describe ( 'Ember >= 3.27' , function ( ) {
235
+ describe ( 'default configuration' , function ( ) {
236
236
let h = transformTestHelper ( {
237
237
presets,
238
238
plugins : [
@@ -258,7 +258,7 @@ function createTests(options) {
258
258
} ) ;
259
259
} ) ;
260
260
261
- describe ( 'Retain Module External Test Helpers' , function ( ) {
261
+ describe ( 'Retain Module External Test Helpers' , function ( ) {
262
262
let h = transformTestHelper ( {
263
263
presets,
264
264
plugins : [
@@ -281,7 +281,7 @@ function createTests(options) {
281
281
h . generateTest ( 'retain-module-external-helpers' ) ;
282
282
} ) ;
283
283
284
- describe ( 'Svelte Builds' , function ( ) {
284
+ describe ( 'Svelte Builds' , function ( ) {
285
285
let h = transformTestHelper ( {
286
286
presets,
287
287
plugins : [
@@ -324,7 +324,7 @@ function createTests(options) {
324
324
h . generateTest ( 'development-svelte-builds' ) ;
325
325
} ) ;
326
326
327
- describe ( 'Inline Env Flags' , function ( ) {
327
+ describe ( 'Inline Env Flags' , function ( ) {
328
328
let h = transformTestHelper ( {
329
329
presets,
330
330
plugins : [
@@ -345,7 +345,7 @@ function createTests(options) {
345
345
h . generateTest ( 'debug-flag' ) ;
346
346
} ) ;
347
347
348
- describe ( 'Retains non-macro types' , function ( ) {
348
+ describe ( 'Retains non-macro types' , function ( ) {
349
349
let h = transformTestHelper ( {
350
350
presets,
351
351
plugins : [
@@ -366,7 +366,7 @@ function createTests(options) {
366
366
h . generateTest ( 'does-not-modify-non-imported-flags' ) ;
367
367
} ) ;
368
368
369
- describe ( 'Removes Imports Without Specifiers' , function ( ) {
369
+ describe ( 'Removes Imports Without Specifiers' , function ( ) {
370
370
let h = transformTestHelper ( {
371
371
presets,
372
372
plugins : [
@@ -386,7 +386,7 @@ function createTests(options) {
386
386
h . generateTest ( 'removes-imports-without-specifiers' ) ;
387
387
} ) ;
388
388
389
- describe ( 'Runtime Feature Flags' , function ( ) {
389
+ describe ( 'Runtime Feature Flags' , function ( ) {
390
390
let h = transformTestHelper ( {
391
391
presets,
392
392
plugins : [
@@ -415,7 +415,7 @@ function createTests(options) {
415
415
h . generateTest ( 'runtime-feature-flags' ) ;
416
416
} ) ;
417
417
418
- describe ( 'Runtime default export features' , function ( ) {
418
+ describe ( 'Runtime default export features' , function ( ) {
419
419
let h = transformTestHelper ( {
420
420
presets,
421
421
plugins : [
@@ -444,7 +444,7 @@ function createTests(options) {
444
444
h . generateTest ( 'default-export-features' ) ;
445
445
} ) ;
446
446
447
- describe ( 'Retains runtime feature flag definitions' , function ( ) {
447
+ describe ( 'Retains runtime feature flag definitions' , function ( ) {
448
448
let h = transformTestHelper ( {
449
449
presets,
450
450
plugins : [
@@ -477,7 +477,7 @@ function createTests(options) {
477
477
function transformTestHelper ( options ) {
478
478
return {
479
479
generateTest ( fixtureName ) {
480
- it ( fixtureName , function ( ) {
480
+ it ( fixtureName , function ( ) {
481
481
let sample = fs . readFileSync ( `./fixtures/${ fixtureName } /sample.js` , 'utf-8' ) ;
482
482
let expectation = fs . readFileSync (
483
483
`./fixtures/${ fixtureName } /expectation${ babelVersion } .js` ,
@@ -488,7 +488,7 @@ function createTests(options) {
488
488
} ,
489
489
490
490
generateErrorTest ( fixtureName , error ) {
491
- it ( fixtureName , function ( ) {
491
+ it ( fixtureName , function ( ) {
492
492
let sample = fs . readFileSync ( `./fixtures/${ fixtureName } /sample.js` , 'utf-8' ) ;
493
493
expect ( ( ) => transform ( sample , options ) ) . toThrow ( error ) ;
494
494
} ) ;
0 commit comments