(options)
| 953 | } |
| 954 | |
| 955 | function convertCollectionOptions(options) { |
| 956 | const result = {}; |
| 957 | Object.keys(options).forEach(key => { |
| 958 | if (key === 'readPreference') { |
| 959 | result[key] = normalizeReadPreference(options[key].mode); |
| 960 | } else { |
| 961 | result[key] = options[key]; |
| 962 | } |
| 963 | }); |
| 964 | |
| 965 | return result; |
| 966 | } |
| 967 | |
| 968 | async function testOperations(testData, operationContext, options) { |
| 969 | options = options || { swallowOperationErrors: true }; |
no test coverage detected