This repository was archived by the owner on Mar 30, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,25 @@ describe("generator-biojs-webcomponents:app - Upgrade an existing component by i
91
91
it ( "skips the current question if user enters skip" , async ( ) => {
92
92
assert . equal ( await validators . importBuildFileLocally ( "skip" ) , true ) ;
93
93
} ) ;
94
+ it ( "renames the directory in which build file will be imported" , async ( ) => {
95
+ await validators
96
+ . renameDirectory ( "test-directory" )
97
+ . then ( ( ) => assert . file ( [ "test-directory" , "component-dist" ] ) ) ;
98
+ } ) ;
99
+ it ( "pastes the build file in renamed directory" , async ( ) => {
100
+ await validators
101
+ . importBuildFileInRenamedDirectory ( path . join ( __dirname , "../LICENSE" ) , {
102
+ renameDirectory : "test-directory"
103
+ } )
104
+ . then ( ( ) => assert . file ( [ "test-directory/LICENSE" ] ) ) ;
105
+ } ) ;
106
+ it ( "overwrites the directory content" , async ( ) => {
107
+ await validators
108
+ . overwriteDirectoryContent ( path . join ( __dirname , "../README.md" ) )
109
+ . then ( ( ) => {
110
+ assert . file ( [ "component-dist/README.md" ] ) ;
111
+ } ) ;
112
+ } ) ;
94
113
it ( "throws an error if user enters an empty string as path of build file" , async ( ) => {
95
114
assert . equal (
96
115
await validators . importBuildFileFromNPM ( "" ) ,
You can’t perform that action at this time.
0 commit comments