File tree Expand file tree Collapse file tree 2 files changed +1
-27
lines changed Expand file tree Collapse file tree 2 files changed +1
-27
lines changed Original file line number Diff line number Diff line change @@ -61,9 +61,8 @@ module.exports = class ArtifactGenerator extends Generator {
61
61
{
62
62
type : 'input' ,
63
63
name : 'name' ,
64
- message : utils . toClassName ( this . artifactInfo . type ) + ' name:' , // capitalization
64
+ message : utils . toClassName ( this . artifactInfo . type ) + ' class name:' , // capitalization
65
65
when : this . artifactInfo . name === undefined ,
66
- default : this . artifactInfo . defaultName ,
67
66
validate : utils . validateClassName ,
68
67
} ,
69
68
] ;
Original file line number Diff line number Diff line change @@ -51,31 +51,6 @@ describe('lb4 controller', () => {
51
51
assert . fileContent ( tmpDir + withInputName , / c o n s t r u c t o r \( \) { } / ) ;
52
52
} ) ;
53
53
} ) ;
54
- describe ( 'without input' , ( ) => {
55
- let tmpDir ;
56
- before ( ( ) => {
57
- return helpers
58
- . run ( generator )
59
- . inTmpDir ( dir => {
60
- tmpDir = dir ;
61
- fs . writeFileSync (
62
- path . join ( tmpDir , 'package.json' ) ,
63
- JSON . stringify ( {
64
- keywords : [ 'loopback' ] ,
65
- } )
66
- ) ;
67
- } )
68
- . withPrompts ( noInputProps ) ;
69
- } ) ;
70
- it ( 'writes correct file name' , ( ) => {
71
- assert . file ( tmpDir + noInputName ) ;
72
- assert . noFile ( tmpDir + templateName ) ;
73
- } ) ;
74
- it ( 'scaffolds correct files' , ( ) => {
75
- assert . fileContent ( tmpDir + noInputName , / c l a s s N e w C o n t r o l l e r / ) ;
76
- assert . fileContent ( tmpDir + noInputName , / c o n s t r u c t o r \( \) { } / ) ;
77
- } ) ;
78
- } ) ;
79
54
describe ( 'with arg' , ( ) => {
80
55
let tmpDir ;
81
56
before ( ( ) => {
You can’t perform that action at this time.
0 commit comments