Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Commit 65d4894

Browse files
author
Jacob Wenger
committed
Fixed typo in test description and rearranged test order
1 parent 18db305 commit 65d4894

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/unit/utils.spec.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -238,19 +238,19 @@ describe('$firebaseUtils', function () {
238238
callback(false);
239239
expect(deferred.reject).toHaveBeenCalledWith(false);
240240
});
241+
242+
it('should resolve the promise if the first argument is null', function(){
243+
var result = {data:'hello world'};
244+
callback(null,result);
245+
expect(deferred.resolve).toHaveBeenCalledWith(result);
246+
});
241247

242-
it('should aggregate multiple args into an array', function(){
248+
it('should aggregate multiple arguments into an array', function(){
243249
var result1 = {data:'hello world!'};
244250
var result2 = {data:'howdy!'};
245251
callback(null,result1,result2);
246252
expect(deferred.resolve).toHaveBeenCalledWith([result1,result2]);
247253
});
248-
249-
it('should resolve the promise if the first argument is falsy', function(){
250-
var result = {data:'hello world'};
251-
callback(null,result);
252-
expect(deferred.resolve).toHaveBeenCalledWith(result);
253-
});
254254
});
255255

256256
});

0 commit comments

Comments
 (0)