You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i'm (finally) upgrading my generator to latest version of yeoman-generator.
I have an issue in my unit tests, as it seems you do not any more attach errors prompt on the prompt object.
I was doing somehting like this:
it('with empty constantname should throw an error',function(done){this.runGen.withPrompts({modulename: modulename,constantname: ''}).on('error',function(error){console.log(error);}).on('end',function(){assert(_.isEqual(this.runGen.generator.prompt.errors,[{name: 'constantname',message: 'Please enter a non empty name'}]));done();}.bind(this));});
which does not work anymore as prompt.errors is empty...
is there a workaround ?
cheers
The text was updated successfully, but these errors were encountered:
SBoudrias
changed the title
Upgrade from 0.17.7 issues
prompt.errors is not attached to the TestAdapter prompt anymore
Nov 30, 2015
Hi,
i'm (finally) upgrading my generator to latest version of
yeoman-generator
.I have an issue in my unit tests, as it seems you do not any more attach errors prompt on the
prompt
object.I was doing somehting like this:
which does not work anymore as prompt.errors is empty...
is there a workaround ?
cheers
The text was updated successfully, but these errors were encountered: