finalResults.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /**
  2. * Final results of integrator for a use case w/ multiple joins
  3. * with the data from the various fixtures.
  4. * @type {Object}
  5. */
  6. // NOTE
  7. // Currently unused, until the inner join feature is added
  8. // to prune keys of joined child rows. Otherwise there is a lot
  9. // of extra data that isn't worth writing short-term tests to compare against.
  10. module.exports = {
  11. // the `multiple.joins.js` fixture.
  12. 'multiple.joins': [{
  13. id: 10,
  14. subject: 'msgA',
  15. body: 'A test message.',
  16. from: [{
  17. email: 'sender@thatguy.com',
  18. subject: 'msgA',
  19. body: 'A test message.',
  20. from: 1,
  21. to: [
  22. [Object],
  23. [Object]
  24. ],
  25. '??????': 10
  26. }, {
  27. email: 'sender@thatguy.com',
  28. subject: 'msgB',
  29. body: 'Another test message.',
  30. from: 1,
  31. to: [],
  32. '??????': 20
  33. }],
  34. to: [{
  35. email: 'a@recipient.com',
  36. id: 2,
  37. subject: 'msgA',
  38. body: 'A test message.',
  39. from: 1
  40. }, {
  41. email: 'b@recipient.com',
  42. id: 3,
  43. subject: 'msgA',
  44. body: 'A test message.',
  45. from: 1
  46. }],
  47. cc: [{
  48. email: 'c@recipient.com',
  49. id: 4,
  50. subject: 'msgA',
  51. body: 'A test message.',
  52. from: [
  53. [Object],
  54. [Object]
  55. ],
  56. to: [
  57. [Object],
  58. [Object]
  59. ]
  60. }, {
  61. email: 'd@recipient.com',
  62. id: 5,
  63. subject: 'msgA',
  64. body: 'A test message.',
  65. from: [
  66. [Object],
  67. [Object]
  68. ],
  69. to: [
  70. [Object],
  71. [Object]
  72. ]
  73. }]
  74. }, {
  75. id: 20,
  76. subject: 'msgB',
  77. body: 'Another test message.',
  78. from: [],
  79. to: [],
  80. cc: []
  81. }, {
  82. id: 30,
  83. subject: 'msgC',
  84. body: 'Aint sent this one yet.',
  85. from: [{
  86. subject: 'msgC',
  87. body: 'Aint sent this one yet.',
  88. from: null,
  89. to: [],
  90. '??????': 30
  91. }],
  92. to: [],
  93. cc: []
  94. }]
  95. };