File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { expect } from 'chai' ;
22
3+ import { WriteConcern } from '../../../src' ;
34import { AggregateOperation } from '../../../src/operations/aggregate' ;
4- import { MongoDBNamespace , WriteConcern } from '../../mongodb ' ;
5+ import { MongoDBNamespace } from '../../../src/utils ' ;
56
67describe ( '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 ;
You can’t perform that action at this time.
0 commit comments