1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-29 12:22:22 -05:00

Fix tests

This commit is contained in:
Tankred Hase 2014-09-22 13:59:05 +02:00
parent 1cc224dcf2
commit 8199ee741d

View File

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