This repository was archived by the owner on Mar 30, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +23
-5
lines changed Expand file tree Collapse file tree 2 files changed +23
-5
lines changed Original file line number Diff line number Diff line change @@ -5,12 +5,25 @@ const helpers = require("yeoman-test");
5
5
6
6
describe ( "generator-biojs-webcomponents:app" , ( ) => {
7
7
beforeAll ( ( ) => {
8
- return helpers
9
- . run ( path . join ( __dirname , "../generators/app" ) )
10
- . withPrompts ( { someAnswer : true } ) ;
8
+ return helpers . run ( path . join ( __dirname , "../generators/app" ) ) . withPrompts ( {
9
+ someAnswer : true
10
+ } ) ;
11
11
} ) ;
12
12
13
- it ( "creates files" , ( ) => {
14
- assert . file ( [ "dummyfile.txt" ] ) ;
13
+ it ( "creates expected files" , ( ) => {
14
+ assert . file ( [
15
+ "examples/index.html" ,
16
+ "src/index.js" ,
17
+ "src/style.less" ,
18
+ ".gitignore" ,
19
+ "index.html" ,
20
+ "package.json" ,
21
+ "README.md" ,
22
+ "TODO.md" ,
23
+ "webpack.config.js"
24
+ ] ) ;
25
+ } ) ;
26
+ it ( "initialises server script" , ( ) => {
27
+ assert . file ( [ "dev/serve.js" ] ) ;
15
28
} ) ;
16
29
} ) ;
Original file line number Diff line number Diff line change @@ -118,6 +118,11 @@ module.exports = class extends Generator {
118
118
this . destinationPath ( ".gitignore" )
119
119
) ;
120
120
121
+ this . fs . copyTpl (
122
+ this . templatePath ( "TODO.md" ) ,
123
+ this . destinationPath ( "TODO.md" )
124
+ ) ;
125
+
121
126
this . fs . copyTpl (
122
127
this . templatePath ( "img/favicon.png" ) ,
123
128
this . destinationPath ( "img/favicon.png" )
You can’t perform that action at this time.
0 commit comments