File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,11 @@ exports.handler = function (args) {
4242 ) ;
4343 helpers . view . log (
4444 'New migration was created at' ,
45- clc . blueBright ( helpers . path . getMigrationPath ( args . name ) ) ,
45+ clc . blueBright (
46+ helpers . path . getMigrationPath (
47+ helpers . migration . generateMigrationName ( args )
48+ )
49+ ) ,
4650 '.'
4751 ) ;
4852
Original file line number Diff line number Diff line change @@ -119,7 +119,8 @@ const _ = require('lodash');
119119 {
120120 flags : { name : 'User' , attributes } ,
121121 } ,
122- ( ) => {
122+ ( err , stdout ) => {
123+ expect ( stdout ) . to . match ( / N e w m o d e l w a s c r e a t e d a t .* u s e r .j s / ) ;
123124 gulp
124125 . src ( Support . resolveSupportPath ( 'tmp' , 'models' ) )
125126 . pipe ( helpers . listFiles ( ) )
@@ -162,7 +163,10 @@ const _ = require('lodash');
162163 {
163164 flags : { name : 'User' , attributes } ,
164165 } ,
165- ( ) => {
166+ ( err , stdout ) => {
167+ expect ( stdout ) . to . match (
168+ / N e w m i g r a t i o n w a s c r e a t e d a t .* c r e a t e - u s e r .j s /
169+ ) ;
166170 gulp
167171 . src ( Support . resolveSupportPath ( 'tmp' , 'migrations' ) )
168172 . pipe ( helpers . listFiles ( ) )
You can’t perform that action at this time.
0 commit comments