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

Commit 53ace60

Browse files
committed
Merge pull request #550 from firebase/jw-version-number
Added API access for AngularFire version number
2 parents 83edb53 + a60877e commit 53ace60

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

src/utils.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,12 @@
432432
});
433433
return dat;
434434
},
435+
436+
/**
437+
* AngularFire version number.
438+
*/
439+
VERSION: '0.0.0',
440+
435441
batchDelay: firebaseBatchDelay,
436442
allPromises: $q.all.bind($q)
437443
};

tests/unit/utils.spec.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ describe('$firebaseUtils', function () {
237237
callback(false);
238238
expect(deferred.reject).toHaveBeenCalledWith(false);
239239
});
240-
240+
241241
it('should resolve the promise if the first argument is null', function(){
242242
var result = {data:'hello world'};
243243
callback(null,result);
@@ -252,6 +252,11 @@ describe('$firebaseUtils', function () {
252252
});
253253
});
254254

255+
describe('#VERSION', function() {
256+
it('should return the version number', function() {
257+
expect($utils.VERSION).toEqual('0.0.0');
258+
});
259+
});
255260
});
256261

257262
describe('#promise (ES6 Polyfill)', function(){

0 commit comments

Comments
 (0)