Skip to content

Commit

Permalink
Fixed typo in test description and rearranged test order
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Wenger committed Dec 5, 2014
1 parent 18db305 commit 65d4894
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/unit/utils.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,19 +238,19 @@ describe('$firebaseUtils', function () {
callback(false);
expect(deferred.reject).toHaveBeenCalledWith(false);
});

it('should resolve the promise if the first argument is null', function(){
var result = {data:'hello world'};
callback(null,result);
expect(deferred.resolve).toHaveBeenCalledWith(result);
});

it('should aggregate multiple args into an array', function(){
it('should aggregate multiple arguments into an array', function(){
var result1 = {data:'hello world!'};
var result2 = {data:'howdy!'};
callback(null,result1,result2);
expect(deferred.resolve).toHaveBeenCalledWith([result1,result2]);
});

it('should resolve the promise if the first argument is falsy', function(){
var result = {data:'hello world'};
callback(null,result);
expect(deferred.resolve).toHaveBeenCalledWith(result);
});
});

});

0 comments on commit 65d4894

Please sign in to comment.