Skip to content

Commit

Permalink
chore: remove unnecessary print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Feb 18, 2019
1 parent 13c7a00 commit 660fe60
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/document.populate.test.js
Expand Up @@ -876,7 +876,7 @@ describe('document.populate', function() {

it('works with populate', function() {
return co(function*() {
const player1 = yield Player.create({ _id: 'John' });
yield Player.create({ _id: 'John' });
yield Player.create({ _id: 'Foo' });
const createdTeam = yield Team.create({ captain: 'John Doe', players: [{ player: 'John Doe' }, { player: 'Foo Bar' }] });

Expand All @@ -885,8 +885,6 @@ describe('document.populate', function() {
.populate({ path: 'players.player', options: { getters: true } })
.exec();

console.log(team);
console.log(player1);
assert.ok(team.captain);
assert.strictEqual(team.captain._id, 'John');
assert.strictEqual(team.players.length, 2);
Expand Down

0 comments on commit 660fe60

Please sign in to comment.