@@ -7,19 +7,20 @@ const helpers = require('yeoman-test');
77describe ( 'babel-plugin:app' , ( ) => {
88 describe ( 'with prompt inputs' , ( ) => {
99 beforeAll ( ( done ) => {
10- helpers . run ( path . join ( __dirname , '../generators/app' ) )
10+ helpers
11+ . run ( path . join ( __dirname , '../generators/app' ) )
1112 . withOptions ( { skipInstall : true } )
1213 . withPrompts ( {
1314 name : 'do-something-really-awesome' ,
1415 description : 'A plugin that does a really cool thing' ,
1516 githubUsername : 'my-username' ,
1617 authorName : 'Oswald ThatEndsWald' ,
1718 authorEmail : 'oswald@thatendswald.com' ,
18- keywords : 'foo, bar'
19+ keywords : 'foo, bar' ,
1920 } )
2021 . on ( 'end' , done ) ;
2122 } ) ;
22-
23+
2324 it ( 'creates files' , ( ) => {
2425 assert . file ( [
2526 '.gitignore' ,
@@ -29,25 +30,26 @@ describe('babel-plugin:app', () => {
2930 'package.json' ,
3031 'README.md' ,
3132 'src/index.js' ,
32- '__tests__/index.js'
33+ '__tests__/index.js' ,
3334 ] ) ;
3435 } ) ;
35-
36+
3637 it ( 'populates package.json correctly' , ( ) => {
3738 assert . jsonFileContent ( 'package.json' , {
3839 name : 'babel-plugin-do-something-really-awesome' ,
3940 version : '0.0.0' ,
4041 description : 'A plugin that does a really cool thing' ,
4142 repository : 'my-username/babel-plugin-do-something-really-awesome' ,
4243 author : 'Oswald ThatEndsWald <oswald@thatendswald.com>' ,
43- keywords : [ 'foo' , 'bar' , 'babel-plugin' ]
44+ keywords : [ 'foo' , 'bar' , 'babel-plugin' ] ,
4445 } ) ;
4546 } ) ;
4647 } ) ;
4748
4849 describe ( 'without prompt inputs' , ( ) => {
4950 beforeAll ( ( done ) => {
50- helpers . run ( path . join ( __dirname , '../generators/app' ) )
51+ helpers
52+ . run ( path . join ( __dirname , '../generators/app' ) )
5153 . withOptions ( { skipInstall : true } )
5254 . on ( 'end' , done ) ;
5355 } ) ;
@@ -65,10 +67,11 @@ describe('babel-plugin:app', () => {
6567
6668 describe ( 'with only author name' , ( ) => {
6769 beforeAll ( ( done ) => {
68- helpers . run ( path . join ( __dirname , '../generators/app' ) )
70+ helpers
71+ . run ( path . join ( __dirname , '../generators/app' ) )
6972 . withOptions ( { skipInstall : true } )
7073 . withPrompts ( {
71- authorName : 'Oswald ThatEndsWald'
74+ authorName : 'Oswald ThatEndsWald' ,
7275 } )
7376 . on ( 'end' , done ) ;
7477 } ) ;
0 commit comments