@@ -51,16 +51,12 @@ describe('ListCollectionsOperation', function () {
51
51
} ) ;
52
52
} ) ;
53
53
54
- context ( 'when nameOnly is not provided' , function ( ) {
54
+ context ( 'when no options are provided' , function ( ) {
55
55
const operation = new ListCollectionsOperation ( db , { } , { dbName : db } ) ;
56
56
57
57
it ( 'sets nameOnly to false' , function ( ) {
58
58
expect ( operation ) . to . have . property ( 'nameOnly' , false ) ;
59
59
} ) ;
60
- } ) ;
61
-
62
- context ( 'when authorizedCollections is not provided' , function ( ) {
63
- const operation = new ListCollectionsOperation ( db , { } , { dbName : db } ) ;
64
60
65
61
it ( 'sets authorizedCollections to false' , function ( ) {
66
62
expect ( operation ) . to . have . property ( 'authorizedCollections' , false ) ;
@@ -137,24 +133,10 @@ describe('ListCollectionsOperation', function () {
137
133
} ) ;
138
134
} ) ;
139
135
140
- context ( 'when nameOnly is not provided' , function ( ) {
136
+ context ( 'when no options are provided' , function ( ) {
141
137
const operation = new ListCollectionsOperation ( db , { } , { dbName : db } ) ;
142
138
143
- it ( 'sets nameOnly to false' , function ( ) {
144
- expect ( operation . generateCommand ( ) ) . to . deep . equal ( {
145
- listCollections : 1 ,
146
- cursor : { } ,
147
- filter : { } ,
148
- nameOnly : false ,
149
- authorizedCollections : false
150
- } ) ;
151
- } ) ;
152
- } ) ;
153
-
154
- context ( 'when authorizedCollections is not provided' , function ( ) {
155
- const operation = new ListCollectionsOperation ( db , { } , { dbName : db } ) ;
156
-
157
- it ( 'sets authorizedCollections to false' , function ( ) {
139
+ it ( 'sets nameOnly and authorizedCollections properties to false' , function ( ) {
158
140
expect ( operation . generateCommand ( ) ) . to . deep . equal ( {
159
141
listCollections : 1 ,
160
142
cursor : { } ,
0 commit comments