@@ -1216,7 +1216,6 @@ describe('mquery', function() {
1216
1216
const negated = {
1217
1217
limit : { distinct : false , count : true } ,
1218
1218
skip : { distinct : false , count : true } ,
1219
- maxScan : { distinct : false , count : false } ,
1220
1219
batchSize : { distinct : false , count : false } ,
1221
1220
maxTime : { distinct : true , count : true , name : 'maxTimeMS' }
1222
1221
} ;
@@ -1711,13 +1710,6 @@ describe('mquery', function() {
1711
1710
done ( ) ;
1712
1711
} ) ;
1713
1712
1714
- it ( 'maxScan' , function ( done ) {
1715
- assert . throws ( function ( ) {
1716
- mquery ( ) . maxScan ( 300 ) . count ( ) ;
1717
- } , / m a x S c a n c a n n o t b e u s e d w i t h c o u n t / ) ;
1718
- done ( ) ;
1719
- } ) ;
1720
-
1721
1713
it ( 'snapshot' , function ( done ) {
1722
1714
assert . throws ( function ( ) {
1723
1715
mquery ( ) . snapshot ( ) . count ( ) ;
@@ -1889,13 +1881,6 @@ describe('mquery', function() {
1889
1881
done ( ) ;
1890
1882
} ) ;
1891
1883
1892
- it ( 'maxScan' , function ( done ) {
1893
- assert . throws ( function ( ) {
1894
- mquery ( ) . maxScan ( 300 ) . distinct ( ) ;
1895
- } , / m a x S c a n c a n n o t b e u s e d w i t h d i s t i n c t / ) ;
1896
- done ( ) ;
1897
- } ) ;
1898
-
1899
1884
it ( 'snapshot' , function ( done ) {
1900
1885
assert . throws ( function ( ) {
1901
1886
mquery ( ) . snapshot ( ) . distinct ( ) ;
@@ -2126,13 +2111,6 @@ describe('mquery', function() {
2126
2111
done ( ) ;
2127
2112
} ) ;
2128
2113
2129
- it ( 'maxScan' , function ( done ) {
2130
- assert . throws ( function ( ) {
2131
- mquery ( ) . maxScan ( 300 ) [ method ] ( ) ;
2132
- } , new RegExp ( 'maxScan cannot be used with ' + method ) ) ;
2133
- done ( ) ;
2134
- } ) ;
2135
-
2136
2114
it ( 'snapshot' , function ( done ) {
2137
2115
assert . throws ( function ( ) {
2138
2116
mquery ( ) . snapshot ( ) [ method ] ( ) ;
0 commit comments