Fix tests

This commit is contained in:
Tankred Hase 2014-09-22 13:59:05 +02:00
parent 1cc224dcf2
commit 8199ee741d
1 changed files with 2 additions and 0 deletions

View File

@ -60,6 +60,7 @@ define(function(require) {
it('should fail to error creating user', function(done) {
scope.form.$invalid = false;
scope.betaCode = 'asfd';
scope.phone = '12345';
adminStub.createUser.yieldsAsync(new Error('asdf'));
scope.$apply = function() {
@ -76,6 +77,7 @@ define(function(require) {
it('should work', function(done) {
scope.form.$invalid = false;
scope.betaCode = 'asfd';
scope.phone = '12345';
adminStub.createUser.yieldsAsync();
scope.$apply = function() {