Skip to content

Commit

Permalink
minor test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ilearnio committed Aug 21, 2018
1 parent 13f4f20 commit ce12bf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/firestore.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ describe('MockFirestore', function () {

return awaitChecks;
});

context('when "batch.commit" is not called', function () {
afterEach(function () {
db.doc('col/batch-foo').delete();
Expand All @@ -232,7 +232,7 @@ describe('MockFirestore', function () {
batch.set(db.doc('col/batch-foo'), { foo: 'fooo' });
batch.set(db.doc('col/batch-bar'), { bar: 'barr' });

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

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

0 comments on commit ce12bf5

Please sign in to comment.