add disclaimer controller test

This commit is contained in:
Matias Alejo Garcia 2016-06-05 16:27:49 -03:00
commit 7781b93a88
No known key found for this signature in database
GPG key ID: 02470DB551277AB3
5 changed files with 122 additions and 22 deletions

View file

@ -220,6 +220,9 @@ mocks.init = function(fixtures, controllerName, opts, done) {
noWallet: true
}, function(err) {
should.not.exist(err, err);
if (opts.noDisclaimer){
return done();
};
_profileService_.setDisclaimerAccepted(function() {
if (!opts.initController)
startController();