Skip to content

Commit ce12bf5

Browse files
committed
minor test fix
1 parent 13f4f20 commit ce12bf5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/unit/firestore.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ describe('MockFirestore', function () {
219219

220220
return awaitChecks;
221221
});
222-
222+
223223
context('when "batch.commit" is not called', function () {
224224
afterEach(function () {
225225
db.doc('col/batch-foo').delete();
@@ -232,7 +232,7 @@ describe('MockFirestore', function () {
232232
batch.set(db.doc('col/batch-foo'), { foo: 'fooo' });
233233
batch.set(db.doc('col/batch-bar'), { bar: 'barr' });
234234

235-
expect(function () { db.flush(); }).to.throw(Error);
235+
expect(function () { db.flush(); }).to.throw('No deferred tasks to be flushed');
236236

237237
var promises = [
238238
db.doc('col/batch-foo').get(),

0 commit comments

Comments
 (0)