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

Commit 6a506f9

Browse files
author
jacobawenger
committed
Minor stylistic changes to key() rename
1 parent ccf8b18 commit 6a506f9

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,8 @@
343343

344344
/**
345345
* A utility for retrieving a DataSnapshot's key name. This
346-
* is backwards-compatible with .name() from Firebase 1.x.x
347-
* and .key() from Firebase 2.0.0+. Once support for Firebase
346+
* is backwards-compatible with `name()` from Firebase 1.x.x
347+
* and `key()` from Firebase 2.0.0+. Once support for Firebase
348348
* 1.x.x is dropped in AngularFire, this helper can be removed.
349349
*/
350350
getSnapshotKey: function(snapshot) {

tests/unit/utils.spec.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ describe('$firebaseUtils', function () {
177177
describe('#getSnapshotKey', function() {
178178
it('should return the key name given a DataSnapshot', function() {
179179
var snapshot = testutils.snap('data', 'foo');
180-
181180
expect($utils.getSnapshotKey(snapshot)).toEqual('foo');
182181
});
183182
});

0 commit comments

Comments
 (0)