processTableData.test.ts.snap 929 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`processTableData basic processing should generate a header and fix widths 1`] = `
  3. Object {
  4. "columnMap": Object {},
  5. "columns": Array [
  6. Object {
  7. "text": "Column 1",
  8. },
  9. Object {
  10. "text": "Column 2",
  11. },
  12. Object {
  13. "text": "Column 3",
  14. },
  15. ],
  16. "rows": Array [
  17. Array [
  18. 1,
  19. null,
  20. null,
  21. ],
  22. Array [
  23. 2,
  24. 3,
  25. 4,
  26. ],
  27. Array [
  28. 5,
  29. 6,
  30. null,
  31. ],
  32. ],
  33. "type": "table",
  34. }
  35. `;
  36. exports[`processTableData basic processing should read header and two rows 1`] = `
  37. Object {
  38. "columnMap": Object {},
  39. "columns": Array [
  40. Object {
  41. "text": "a",
  42. },
  43. Object {
  44. "text": "b",
  45. },
  46. Object {
  47. "text": "c",
  48. },
  49. ],
  50. "rows": Array [
  51. Array [
  52. 1,
  53. 2,
  54. 3,
  55. ],
  56. Array [
  57. 4,
  58. 5,
  59. 6,
  60. ],
  61. ],
  62. "type": "table",
  63. }
  64. `;