Skip to content

Commit ab995da

Browse files
committed
update format, pull changes in mila/count
1 parent c8cd2a5 commit ab995da

File tree

1 file changed

+36
-36
lines changed

1 file changed

+36
-36
lines changed

packages/firestore/test/integration/api/count.test.ts

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -15,39 +15,39 @@
1515
* limitations under the License.
1616
*/
1717

18-
import { expect } from 'chai';
19-
import {
20-
countQuery,
21-
getAggregateFromServerDirect,
22-
query
23-
} from '../util/firebase_export';
24-
import { apiDescribe, withTestCollection } from '../util/helpers';
25-
26-
apiDescribe('Aggregation COUNT query:', (persistence: boolean) => {
27-
it.only('empty collection count equals to 0', () => {
28-
const testDocs = {};
29-
return withTestCollection(persistence, testDocs, collection => {
30-
const countQuery_ = countQuery(query(collection));
31-
return getAggregateFromServerDirect(countQuery_).then(snapshot => {
32-
expect(snapshot.getCount()).to.equal(0);
33-
});
34-
});
35-
});
36-
37-
it.only('test collection count equals to 6', () => {
38-
const testDocs = {
39-
a: { k: 'a' },
40-
b: { k: 'b' },
41-
c: { k: 'c' },
42-
d: { k: 'd' },
43-
e: { k: 'e' },
44-
f: { k: 'f' }
45-
};
46-
return withTestCollection(persistence, testDocs, collection => {
47-
const countQuery_ = countQuery(query(collection));
48-
return getAggregateFromServerDirect(countQuery_).then(snapshot => {
49-
expect(snapshot.getCount()).to.equal(6);
50-
});
51-
});
52-
});
53-
});
18+
import { expect } from 'chai';
19+
import {
20+
countQuery,
21+
getAggregateFromServerDirect,
22+
query
23+
} from '../util/firebase_export';
24+
import { apiDescribe, withTestCollection } from '../util/helpers';
25+
26+
apiDescribe('Aggregation COUNT query:', (persistence: boolean) => {
27+
it.only('empty collection count equals to 0', () => {
28+
const testDocs = {};
29+
return withTestCollection(persistence, testDocs, collection => {
30+
const countQuery_ = countQuery(query(collection));
31+
return getAggregateFromServerDirect(countQuery_).then(snapshot => {
32+
expect(snapshot.getCount()).to.equal(0);
33+
});
34+
});
35+
});
36+
37+
it.only('test collection count equals to 6', () => {
38+
const testDocs = {
39+
a: { k: 'a' },
40+
b: { k: 'b' },
41+
c: { k: 'c' },
42+
d: { k: 'd' },
43+
e: { k: 'e' },
44+
f: { k: 'f' }
45+
};
46+
return withTestCollection(persistence, testDocs, collection => {
47+
const countQuery_ = countQuery(query(collection));
48+
return getAggregateFromServerDirect(countQuery_).then(snapshot => {
49+
expect(snapshot.getCount()).to.equal(6);
50+
});
51+
});
52+
});
53+
});

0 commit comments

Comments
 (0)