|
| 1 | +const arrayConstructors = require('./arrayConstructors.json'); |
| 2 | +const arrayOfArraysOfObjects = require('./arrayOfArraysOfObjects.json'); |
| 3 | +const arrayOfArraysOfPrimitives = require('./arrayOfArraysOfPrimitives.json'); |
| 4 | +const arrayOfPrimitives = require('./arrayOfPrimitives.json'); |
| 5 | +const nothingToSplit = require('./nothingToSplit.json'); |
| 6 | +const objectConstructors = require('./objectConstructors.json'); |
| 7 | +const objectValue = require('./objectValue.json'); |
| 8 | +const primitiveValue = require('./primitiveValue.json'); |
| 9 | +const rangeQuery = require('./rangeQuery.json'); |
| 10 | +const rootArray = require('./rootArray.json'); |
| 11 | +const splitArrayOfArrays = require('./splitArrayOfArrays.json'); |
| 12 | +const splitArrayOfObjects = require('./splitArrayOfObjects.json'); |
| 13 | + |
1 | 14 | module.exports = {
|
2 |
| - 'should split array from an array constructor expression': require('./arrayConstructors.json'), |
3 |
| - 'should split array of arrays of objects users.friends': require('./arrayOfArraysOfObjects.json'), |
4 |
| - 'should emit error for array of primitives': require('./arrayOfArraysOfPrimitives.json'), |
5 |
| - 'should emit error for array of primitives usernames': require('./arrayOfPrimitives.json'), |
6 |
| - 'should emit only "end" with empty array usernames': require('./nothingToSplit.json'), |
7 |
| - 'should split array from an object constructor expression': require('./objectConstructors.json'), |
8 |
| - 'should emit error for non-array object': require('./objectValue.json'), |
9 |
| - 'should emit error for non-array primitive': require('./primitiveValue.json'), |
10 |
| - 'should split array from a range query expression': require('./objectConstructors.json'), |
11 |
| - 'should split root array': require('./rootArray.json'), |
12 |
| - 'should split array of arrays': require('./splitArrayOfArrays.json'), |
13 |
| - 'should split array of objects users': require('./splitArrayOfObjects.json'), |
| 15 | + 'should split array from an array constructor expression': arrayConstructors, |
| 16 | + 'should split array of arrays of objects users.friends': arrayOfArraysOfObjects, |
| 17 | + 'should emit error for array of primitives': arrayOfArraysOfPrimitives, |
| 18 | + 'should emit error for array of primitives usernames': arrayOfPrimitives, |
| 19 | + 'should emit only "end" with empty array usernames': nothingToSplit, |
| 20 | + 'should split array from an object constructor expression': objectConstructors, |
| 21 | + 'should emit error for non-array object': objectValue, |
| 22 | + 'should emit error for non-array primitive': primitiveValue, |
| 23 | + 'should split array from a range query expression': rangeQuery, |
| 24 | + 'should split root array': rootArray, |
| 25 | + 'should split array of arrays': splitArrayOfArrays, |
| 26 | + 'should split array of objects users': splitArrayOfObjects, |
14 | 27 | };
|
0 commit comments