Skip to content

Commit 0f54b4b

Browse files
committed
Making tests robust to older versions of the emulator.
1 parent 162c910 commit 0f54b4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ apiDescribe('Aggregation queries', (persistence: boolean) => {
183183
const promise = getAggregateFromServer(coll, {
184184
'with-un/supp[or]ted': count()
185185
});
186-
await expect(promise).to.eventually.rejectedWith(/INVALID_ARGUMENT/);
186+
await expect(promise).to.eventually.rejectedWith(/invalid/i);
187187
});
188188
});
189189

@@ -212,7 +212,7 @@ apiDescribe('Aggregation queries', (persistence: boolean) => {
212212
const promise = getAggregateFromServer(coll, {
213213
'`with`unsupported`': count()
214214
});
215-
await expect(promise).to.eventually.rejectedWith(/INVALID_ARGUMENT/);
215+
await expect(promise).to.eventually.rejectedWith(/invalid/i);
216216
});
217217
});
218218

0 commit comments

Comments
 (0)