(specPath, context)
| 117 | } |
| 118 | |
| 119 | function gatherTestSuites(specPath, context) { |
| 120 | return fs |
| 121 | .readdirSync(specPath) |
| 122 | .filter(x => x.indexOf('.json') !== -1) |
| 123 | .map(x => |
| 124 | Object.assign( |
| 125 | EJSON.parse(fs.readFileSync(path.join(specPath, x)), { |
| 126 | relaxed: context ? !context.requiresCSFLE : true |
| 127 | }), |
| 128 | { |
| 129 | name: path.basename(x, '.json') |
| 130 | } |
| 131 | ) |
| 132 | ); |
| 133 | } |
| 134 | |
| 135 | /** |
| 136 | * Transforms the legacy specification into the unified format specification |
no test coverage detected