Skip to content

Commit 6429747

Browse files
committed
fix: add priority metadata to bool ordered fields
1 parent c6d5af7 commit 6429747

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

test/unit/data.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,12 @@
7878
".priority": "c",
7979
"aLetter": "c"
8080
},
81-
"zbool_true": {
81+
"bool_true": {
82+
".priority": true,
8283
"aBoolean": true
8384
},
84-
"zbool_false": {
85+
"bool_false": {
86+
".priority": false,
8587
"aBoolean": false
8688
}
8789
},

test/unit/query.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,10 @@ describe('MockQuery', function () {
148148

149149
it('should work with boolean equalTo', function() {
150150
var spy = sinon.spy(function(snap) {
151-
expect(_.keys(snap.val())).eql(['zbool_true']);
151+
expect(_.keys(snap.val())).eql(['bool_true']);
152152
});
153153

154-
ref.limitToLast(2).equalTo(true).on('value', spy);
154+
ref.equalTo(true).on('value', spy);
155155
ref.flush();
156156
expect(spy).callCount(1);
157157
});

0 commit comments

Comments
 (0)