Skip to content

Commit

Permalink
test: remove unnecessary await
Browse files Browse the repository at this point in the history
  • Loading branch information
Eli Skeggs committed Mar 30, 2020
1 parent a4b53cc commit b172775
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/database.js
Expand Up @@ -265,7 +265,7 @@ describe('database', function() {
expect(docs).to.deep.contain({ name: 'Charmander' });
expect(docs).to.deep.contain({ name: 'Lapras' });

const cursor = await db.a.findAsCursor({}, { name: true, _id: false });
const cursor = db.a.findAsCursor({}, { name: true, _id: false });

const doc = await cursor.next();

Expand Down Expand Up @@ -300,7 +300,7 @@ describe('database', function() {
expect(docs).to.deep.contain({ name: 'Charmander' });
expect(docs).to.deep.contain({ name: 'Lapras' });

const cursor = await db.a.findAsCursor({}, { name: true, _id: false });
const cursor = db.a.findAsCursor({}, { name: true, _id: false });

const doc = await cursor.next();

Expand Down

0 comments on commit b172775

Please sign in to comment.