Skip to content

Commit 1260352

Browse files
committed
test(NODE-7179): migrate unit/operations/aggregate.test.ts
1 parent 1702987 commit 1260352

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

test/unit/operations/aggregate.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { expect } from 'chai';
22

3+
import { WriteConcern } from '../../../src';
34
import { AggregateOperation } from '../../../src/operations/aggregate';
4-
import { MongoDBNamespace, WriteConcern } from '../../mongodb';
5+
import { MongoDBNamespace } from '../../../src/utils';
56

67
describe('AggregateOperation', function () {
78
const ns = new MongoDBNamespace('test', 'coll');
@@ -64,7 +65,7 @@ describe('AggregateOperation', function () {
6465
});
6566

6667
context('when no writable stages', function () {
67-
const operation = new AggregateOperation(ns, [{ $project: { name: 1 } }], { dbName: ns });
68+
const operation = new AggregateOperation(ns, [{ $project: { name: 1 } }], { dbName: ns.db });
6869

6970
it('sets hasWriteStage to false', function () {
7071
expect(operation.hasWriteStage).to.be.false;

0 commit comments

Comments
 (0)